Jan 26, 2009

Let there be light!

We are going to have a one-week physical computation workshop with Einar S. Martinussen. The first day of the workshop was more about getting to know Arduino which is "an open-source electronics prototyping platform" according to its website, arduino.cc. We also made our first Arduino project, an LED blinking every other second. Here's the code;

int ledPin = 13; //Declare that we have an LED on pin 13
void setup() {
pinMode(ledPin, OUTPUT);
}
void loop() {
//The code loop runs from here...
digitalWrite(ledPin,HIGH); //Turn the LED on
delay(1000); //Wait for a second
digitalWrite(ledPin,LOW); //Turn the LED off
delay(1000); //Wait for a second
//...to here
}