Thomas Edwards - Embedded Systems

Thursday, 25 April 2013


Blink LED Mostly On

int ledPin = 13;

void setup() {
  pinMode(ledPin , OUTPUT); 
}

void loop() {
    initializeLed(ledPin, 1000, 1);
}

void initializeLed(int led, int onDelay, int offDelay) {
  digitalWrite(led, HIGH);
  delay(onDelay);
  digitalWrite(led, LOW);
  delay(offDelay);
}

Posted by Tom at 7:11 pm
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.