Devices & Components
Arduino Uno Rev3
Resistor 220 ohm
Jumper wires (generic)
LED (generic)
Breadboard (generic)
Software & Tools
Arduino IDE
Project description
Code
code
arduino
1/*********************************************************** 2File name: 01_blinkingLed.ino 3Description: LED blinks ON and OFF. 4Website: www.quadstore.in 5***********************************************************/ 6int ledPin=8; //definition digital 8 pins as pin to control the LED 7void setup() 8{ 9 pinMode(ledPin,OUTPUT); //Set the digital 8 port mode, OUTPUT: Output mode 10} 11void loop() 12{ 13 digitalWrite(ledPin,HIGH); //HIGH is set to about 5V PIN8 14 delay(1000); //Set the delay time, 1000 = 1S 15 digitalWrite(ledPin,LOW); //LOW is set to about 5V PIN8 16 delay(1000); //Set the delay time, 1000 = 1S 17}
code
arduino
1/*********************************************************** 2File name: 3 01_blinkingLed.ino 4Description: LED blinks ON and OFF. 5Website: www.quadstore.in 6***********************************************************/ 7int 8 ledPin=8; //definition digital 8 pins as pin to control the LED 9void setup() 10{ 11 12 pinMode(ledPin,OUTPUT); //Set the digital 8 port mode, OUTPUT: Output mode 13} 14void 15 loop() 16{ 17 digitalWrite(ledPin,HIGH); //HIGH is set to about 5V PIN8 18 19 delay(1000); //Set the delay time, 1000 = 1S 20 digitalWrite(ledPin,LOW); 21 //LOW is set to about 5V PIN8 22 delay(1000); //Set the delay 23 time, 1000 = 1S 24}
Downloadable files
Blinking LED
Blinking LED
Comments
Only logged in users can leave comments