Sep 5, 2024
File > Examples > Basic > Bare Minimum
pinMode(13, OUTPUT);
in void setup()
to set pin 13 as output.digitalWrite(13, HIGH);
in void loop();
digitalWrite(13, LOW);
in void loop();
delay(1000);
(for 1 second on, 1 second off).
void loop() {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}