Step 4: Blink + Code
What this code allows you to do is light up an LED on the Arduino Board or if you want a brighter light you can attach an led to the pin 13 and the ground. The longer one the positive goes in pin 13 the negative goes in ground or GND on the arduino board.
The code is :
*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
void setup() {
// initialize the digital pin as an output.
// Pin 13 has an LED connected on most Arduino boards:
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH); // set the LED on
delay(1000); // wait for a second ( 1000 milliseconds)
digitalWrite(13, LOW); // set the LED off
delay(1000); // wait for a second
}
Remove these ads by
Signing Up






















Not Nice












Visit Our Store »
Go Pro Today »



