Devices & Components
Arduino Uno Rev3
5 mm LED: Red
Male/Female Jumper Wires
Software & Tools
Arduino IDE
Project description
Code
CODE
c_cpp
1int myLEDPIN = 13 ; 2int myCount =0; 3 4void setup() { 5 Serial.begin(9600); 6 pinMode(myLEDPIN, OUTPUT); 7} 8 9void loop() { 10 digitalWrite(13, HIGH); 11 Serial.println(myCount); 12 delay(2000); 13 digitalWrite(myLEDPIN, LOW); 14 15 delay(1000); 16 myCount = myCount + 1 ; 17}
CODE
c_cpp
1int myLEDPIN = 13 ; 2int myCount =0; 3 4void setup() { 5 Serial.begin(9600); 6 7 pinMode(myLEDPIN, OUTPUT); 8} 9 10void loop() { 11 digitalWrite(13, 12 HIGH); 13 Serial.println(myCount); 14 delay(2000); 15 16 digitalWrite(myLEDPIN, LOW); 17 18 delay(1000); 19 20 myCount = myCount + 1 ; 21}
Downloadable files
Circuit diagram
Circuit diagram

Comments
Only logged in users can leave comments