Thomas Edwards - Embedded Systems

Tuesday, 23 April 2013

The Changed Blink Program 


int ledPin = 13;
void setup()   {
pinMode(ledPin, OUTPUT);
}
void loop()
{
digitalWrite(ledPin, HIGH);
delay(100);
digitalWrite(ledPin, LOW);
delay(100);
}


I changed the timer so that the light will blink so fast it doesn't look like it's blinking.
Posted by Tom at 4:25 am
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2013 (19)
    • ►  June (2)
    • ▼  April (11)
      • Two LEDs Running at Different Speeds int ledOneP...
      • Two LEDs Running int ledOnePin = 13;int ledTwoPin...
      • Blink LED Mostly On int ledPin = 13;void setup(...
      • Blink LED Mostly Off int ledPin = 13; void setu...
      • The Changed Blink Program  int ledPin = 13; void...
      • The Blink program int ledPin =  13; void setup()...
      • LED YouTube Video 4 http://www.youtube.com/wa...
      • LED YouTube Video 3 http://www.youtube.com/wa...
      • LED YouTube Video 2 http://www.youtube.com/watch?...
      • LED YouTube Video 1 http://www.youtube.com/watch...
      • Useful Sites - Part 2 http://moodle.op.ac.nz/...
    • ►  March (2)
    • ►  February (4)

About Me

Tom
View my complete profile
Picture Window theme. Powered by Blogger.