Skip to content

Commit 43779b5

Browse files
authored
Change stack size
1 parent e39f0ae commit 43779b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/FreeRTOS/FreeRTOS.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void setup() {
2222
xTaskCreatePinnedToCore(
2323
TaskBlink
2424
, "TaskBlink" // A name just for humans
25-
, 128 // This stack size can be checked & adjusted by reading the Stack Highwater
25+
, 1024 // This stack size can be checked & adjusted by reading the Stack Highwater
2626
, NULL
2727
, 2 // Priority, with 3 (configMAX_PRIORITIES - 1) being the highest, and 0 being the lowest.
2828
, NULL
@@ -31,7 +31,7 @@ void setup() {
3131
xTaskCreatePinnedToCore(
3232
TaskAnalogReadA3
3333
, "AnalogReadA3"
34-
, 128 // Stack size
34+
, 1024 // Stack size
3535
, NULL
3636
, 1 // Priority
3737
, NULL
@@ -81,7 +81,7 @@ void TaskAnalogReadA3(void *pvParameters) // This is a task.
8181
AnalogReadSerial
8282
Reads an analog input on pin A3, prints the result to the serial monitor.
8383
Graphical representation is available using serial plotter (Tools > Serial Plotter menu)
84-
Attach the center pin of a potentiometer to pin A#, and the outside pins to +5V and ground.
84+
Attach the center pin of a potentiometer to pin A3, and the outside pins to +5V and ground.
8585
8686
This example code is in the public domain.
8787
*/

0 commit comments

Comments
 (0)