/*Emma Pareschi 25 Spetmber 2017 * I turn on a led and I turn it off */ int led_pin = 3; //define the pin where the Led is connected void setup() { pinMode(led_pin, OUTPUT); //define pin of the Led as an output } void loop() { digitalWrite(led_pin, HIGH); //turn the Led on delay(1000); //wait 1000millisecond digitalWrite(led_pin, LOW); //turn the Led off delay(1000); //wait 1000millisecond }