// My first Arduino program: makes the little "L" light on the board // blink in a heartbeat pattern (two quick blinks, then a pause). // setup() runs once, when the board turns on. void setup() { pinMode(LED_BUILTIN, OUTPUT); // the built-in light is on pin 13 Serial.begin(9600); // lets the board send messages to the computer Serial.println("Hello from your Arduino!"); } // loop() runs over and over, forever. void loop() { digitalWrite(LED_BUILTIN, HIGH); // light ON delay(100); // wait 100 milliseconds (1/10 of a second) digitalWrite(LED_BUILTIN, LOW); // light OFF delay(100); digitalWrite(LED_BUILTIN, HIGH); // second quick blink delay(100); digitalWrite(LED_BUILTIN, LOW); delay(700); // longer pause before the next heartbeat Serial.println("thump-thump"); }