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 is basically working but it adds a delay of 1.1 seconds to the loop which might be pretty disastrous if you you have some other Read more…