Skip to content

Commit 6cc2373

Browse files
committed
Adapt example for R4 WiFi/Minima, since the board does not have an RGB LED (unlike C33).
1 parent 9e269fb commit 6cc2373

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

libraries/Arduino_FreeRTOS/examples/FreeRTOS-Blink/FreeRTOS-Blink.ino

+8
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ void setup()
1919
Serial.begin(115200);
2020
while (!Serial) { }
2121

22+
#if defined(ARDUINO_PORTENTA_H33)
23+
/* Only the Portenta C33 has an RGB LED. */
2224
pinMode(LEDR, OUTPUT);
2325
digitalWrite(LEDR, LOW);
26+
#endif
2427

2528
/* Init a task that calls 'loop'
2629
* since after the call to
@@ -69,7 +72,12 @@ void setup()
6972

7073
void loop()
7174
{
75+
#if defined(ARDUINO_PORTENTA_H33)
76+
/* Only the Portenta C33 has an RGB LED. */
7277
digitalWrite(LEDR, !digitalRead(LEDR));
78+
#else
79+
Serial.println(millis());
80+
#endif
7381
vTaskDelay(configTICK_RATE_HZ/4);
7482
}
7583

0 commit comments

Comments
 (0)