How to Blink in Arduino – Alternative Designs

if you google for “Arduino LED blinking sketch” you might find something like this: #define ONBOARD_LED 2 void setup() { pinMode(ONBOARD_LED,OUTPUT); } void loop() { delay(1000); digitalWrite(ONBOARD_LED,HIGH); delay(100); digitalWrite(ONBOARD_LED,LOW); } (I’am using an ESP32 and therefore I needed to define the ONBOARD_LED because this is not predefined in Arduino.h) This Read more…