As one types in their first line of code with: print(“Hello World!”), when starting to work with Arduino the first program will be blink, which involves one of its many components – LED.
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(ledPin, OUTPUT);
}
void loop() {
digitalWrite(ledPin, HIGH); \\turns LED on
delay(1000);
digitalWrite(ledPin, LOW); \\turns the LED off
delay(100);
}