Tuesday, October 26, 2010

Programing Arduino

Nick Tinkham 12/18/09

int ledPin = 13;

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

void loop()
{
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(ledPin, LOW);
delay(1000);
}

This is the program that we made to run the yellow led. The led blinks once every second. It was a very easy code to write.

No comments:

Post a Comment