| Linduino 1.3.0 Linear Technology Arduino-Compatible Demonstration Board

MyBlink.ino
Go to the documentation of this file.
1 /*
2 Blink
3 Turns on an LED on for one second, then off for one second, repeatedly.
4
5 This example code is in the public domain.
6 */
7
8 #include <Arduino.h> // <-- Must add to *.INO sketch.
9
10 // Pin 13 has an LED connected on most Arduino boards.
11 // give it a name:
12 int led = 13;
13
14 // the setup routine runs once when you press reset:
15 void setup()
16 {
17 // initialize the digital pin as an output.
18 pinMode(led, OUTPUT);
19 }
20
21 // the loop routine runs over and over again forever:
22 void loop()
23 {
24 digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
25 delay(1000); // wait for a second
26 digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
27 delay(1000); // wait for a second
28 }
setup
static void setup()
Definition: MyBlink.ino:15
loop
static void loop()
Definition: MyBlink.ino:22
led
static int led
Definition: MyBlink.ino:12