Hardware/mC
testing Wiring board
maetel
2006. 8. 16. 16:49
To test Wiring board, I did :
1. I/O board installation
2. Trying an example, LED blinks :
3. Uploading a program into I/O board
And the board works!
1. I/O board installation
2. Trying an example, LED blinks :
// Blinking LED
// by BARRAGAN <http://barraganstudio.com>
int ledPin = 0; // LED connected to the Wiring I/O board pin 0
void setup()
{
pinMode(ledPin, OUTPUT); // sets the digital pin as output
}
void loop()
{
digitalWrite(ledPin, HIGH); // sets the LED on
delay(1000); // waits for a second
digitalWrite(ledPin, LOW); // sets the LED off
delay(1000);
}
And the board works!