Pages: [1]   Go Down
Author Topic: Newby Arduino UNO Blinking LED Issue  (Read 406 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

 smiley-sad I just purchased an Arduino UNO from Radio Shack. I am reading your book "Getting Started with Arduino". I downloaded the software to my PC Windows 7 Ultimate. I created the sketch as indicated in the book Page 31 but the led does not change on and off rate.  I changed the on and off to 2 on 6 off but it blinks the same.

HELP! Manny from Puerto Rico

//This my first sketch on Arduono
//This sketch will light a LED on and off
//Every eight seconds.

const int LED = 13; // LEDE connected to
                    //digital pin 13
                   
                   
void setup()
{
  pinMode(LED,OUTPUT);
                         
}

void loop()
{
  digitalWrite(LED,HIGH);  //Turns the led on
  delay(2000);           //Waits for 2 seconds
  digitalWrite(LED,LOW);  //Turns the LED OFF
  delay(6000);
}
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

mannypac,  I ran the code on my Uno and it lit the led for 2 seconds, then turned it off for 6.  Are you sure you uploaded your changes to the board after you made the changes?
Logged

Grand Blanc, MI, USA
Offline Offline
Faraday Member
**
Karma: 93
Posts: 3965
CODE is a mass noun and should not be used in the plural or with an indefinite article.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Welcome to the forum, hope you have fun with Arduino!

For future reference, please see:
http://arduino.cc/forum/index.php/topic,148850.0.html

Item #7 illustrates how to properly post code.
Logged

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Pages: [1]   Go Up
Jump to: