Requirements: Arduino Uno R3 LED Resistor - 220 ohms Connect the LED anode terminal to the resistor then to a digital pin on the arduino. e.g., Pin 13. Connect the LED cathode terminal Ground (GND) pin of the Arduino. Copy paste the following text code. void setup() { pinMode(13, OUTPUT); //set the digital pin 13 as an output } void loop(){ digitalWrite(13, HIGH); //turn the LED on delay(1000);//wait for 1 second (1000 miliseconds) digitalWrite(13, LOW); //turn the LED off delay(1000); //wait for 1 second (1000 miliseconds) }
The world is just a click away