I have this simple code:
void action() {
digitalWrite(2, HIGH);
delay(2000);
digitalWrite(2, LOW);
}
void setup() {
pinMode(2, OUTPUT);
action();
}
void loop() {
}
Why PIN never goes LOW? I am measuring continuity between D4 and GND.
Thank you.