I picked up my Arduino Nano 33 BLE Sense for the first time in a while and ran the classic "Blink" sketch to make sure it was alright. After slight usage, I wanted to play with the onboard LEDs. When I run the following code, the onboard LED does not turn on:
#define RED 22
void setup() {
pinMode(RED, OUTPUT);
}
void loop() {
digitalWrite(RED, HIGH);
}
However, when I run the following code, the onboard LED does turn on and stays on - it doesn't blink:
#define RED 22
void setup() {
pinMode(RED, OUTPUT);
}
void loop() {
digitalWrite(RED, LOW);
delay(1000);
digitalWrite(RED, HIGH);
}
What's happening? Is my Nano busted?