Does anyone know the instructions to blink all of these LED's
Do you know how to blink a single LED ?
Should all of the LEDs blink at the same rate ?
blinkAllLEDs ();
You'll need to fill in the blanks.
Onboard LEDs ?
Which ones?
On the R4 Wifi there are these LEDs:
LED Matrix
TX LED
RX LED
L LED
On LED
Only the L LED is straightforward to control.
TX and RX LEDs are used for serial coms not a good idea to use those.
On LED is for power can't really use that.
Because I don't have a r4 wifi yet I can't tell you much about the LED matrix.
You probably could use that though.
on the RP2040 you can blink all 4 LED's because it uses #include <WiFiNINA.h>
still don't know how to do it on R4 WiFi
Indeed it is not easy to make these LEDs blink. But there are two other ones that do the trick: SDA1 and SCL1 connected to the Qwiic plug.
/*
digitalWrite-to-qwiic
*/
const int SDA1 = 27;
const int SCL1 = 26;
void setup() {
pinMode(SDA1, OUTPUT);
pinMode(SCL1, OUTPUT);
}
void loop() {
digitalWrite(SDA1, HIGH);
delay(1000);
digitalWrite(SDA1, LOW);
digitalWrite(SCL1, HIGH);
delay(1000);
digitalWrite(SCL1, LOW);
}
Of course, this only works when you do not make use of Wire1 which is the I2C for this plug.
You just need one of these adapters
https://www.berrybase.de/media/image/3e/ef/b2/ID_117716_orig.jpg
and two LEDs (plus resistors).