Step 3: Your first project.
Note: for the board you want to use the arduino uno with the arduino board. With the Osepp, you want to use the with atmel328
Here is the code in case you do not have the examples.
Blink.pde:
[code]
/*
* Blink
*
* The basic Arduino example. Turns on an LED on for one second,
* then off for one second, and so on... We use pin 13 because,
* depending on your Arduino board, it has either a built-in LED
* or a built-in resistor so that you need only an LED.
*
* http://www.arduino.cc/en/Tutorial/Blink
*/
int ledPin = 13; // LED connected to digital pin 13
void setup() // run once, when the sketch starts
{
pinMode(ledPin, OUTPUT); // sets the digital pin as output
}
void loop() // run over and over again
{
digitalWrite(ledPin, HIGH); // sets the LED on
delay(1000); // waits for a second
digitalWrite(ledPin, LOW); // sets the LED off
delay(1000); // waits for a second
}
[/code]So run the IDE program
Choose your board.
Choose the port to use.
You should not have to do this again unless your hardware changes.
Load Blink.pde
Compile it.
Upload it to the board.
Watch the light blink.
Not spectacular, but it is an awesome start!
On to bigger and better things.
Remove these ads by
Signing Up























Not Nice
















Visit Our Store »
Go Pro Today »



