We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5110528 commit a7807faCopy full SHA for a7807fa
libraries/Scheduler/examples/MultipleBlinks/MultipleBlinks.ino
@@ -25,10 +25,23 @@
25
// Include Scheduler since we want to manage multiple tasks.
26
#include <Scheduler.h>
27
28
+// On Nano RP2040 Connect, RGB leds are connected to the wifi module
29
+// The user APIs are the same, but we can't convert to int, so use defines
30
+#if defined(ARDUINO_NANO_RP2040_CONNECT)
31
+
32
+#include "WiFiNINA.h"
33
+#define led1 LEDR
34
+#define led2 LEDG
35
+#define led3 LEDB
36
37
+#else
38
39
int led1 = LEDR;
40
int led2 = LEDG;
41
int led3 = LEDB;
42
43
+#endif
44
45
void setup() {
46
Serial.begin(9600);
47
0 commit comments