Simple LED blinking test with TinyLEO

Simple LED blinking test with TinyLEO

Here is a simple LED blinking test with the TinyLEO board.

Arduino sketch:

int led = 13;
int led1 = 17;

void setup() {                
  pinMode(led, OUTPUT);     
  pinMode(led1, OUTPUT);     
}

void loop() {
  digitalWrite(led1, LOW);
  delay(50);

  digitalWrite(led1, HIGH);
  delay(50);

  digitalWrite(led1, LOW);
  delay(50);

  digitalWrite(led1, HIGH);
  delay(50);

  digitalWrite(led1, LOW);
  delay(50);

  digitalWrite(led1, HIGH);
  delay(50);

  digitalWrite(led1, LOW);
  delay(50);

  digitalWrite(led1, HIGH);
  delay(200);

  digitalWrite(led, LOW);
  delay(50);

  digitalWrite(led, HIGH);
  delay(50);

  digitalWrite(led, LOW);
  delay(50);

  digitalWrite(led, HIGH);
  delay(50);

  digitalWrite(led, LOW);
  delay(50);

  digitalWrite(led, LOW);
  delay(50);

  digitalWrite(led, HIGH);
  delay(50);

  digitalWrite(led, LOW);
  delay(50);

  digitalWrite(led, HIGH);
  delay(50);

  digitalWrite(led, LOW);
  delay(400);

  digitalWrite(led, HIGH);
  digitalWrite(led1, LOW);
  delay(50); 

  digitalWrite(led, LOW);
  digitalWrite(led1, HIGH);
  delay(50);

  digitalWrite(led, HIGH);
  digitalWrite(led1, LOW);
  delay(50);

  digitalWrite(led, LOW);
  digitalWrite(led1, HIGH);
  delay(50);

  digitalWrite(led, HIGH);
  digitalWrite(led1, LOW);
  delay(50); 

  digitalWrite(led, LOW);
  digitalWrite(led1, HIGH);
  delay(40);

  digitalWrite(led, HIGH);
  digitalWrite(led1, LOW);
  delay(40);

  digitalWrite(led, LOW);
  digitalWrite(led1, HIGH);
  delay(400); 
}

Sketch File: LeoBlink.ino (1.37 kb)

Leave a Reply

Your email address will not be published. Required fields are marked *


+ 1 = nine

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>