Second step: a LEDs bracelet

17 Nov

Connecting the Lilypad to the cloth, with 5 white LEDs in a row and conductive thread.

Source code:

/*
Blink
Turns on a series of LEDs on for one second, then off for one second, repeatedly.

This example code is in the public domain.

Modified by smartcraftLab on 2011
*/

void setup() {
// initialize digital pin 6 as outputs.
pinMode(6, OUTPUT); // Pin 6 is connected to an LED

}

void loop() {
digitalWrite(6, HIGH); // set the pin 6 LED on
delay(1000); // wait for a second
digitalWrite(6, LOW); // set the pin 6 LED off
delay(1000); // wait for a second
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: