12.
Arduino Language
•
•
•
•
•
•
•
•
C like syntax, but simplified
Abstracts the pin naming to numbers
Trades efficience for ease of use
Easy to learn, yet powerful
Lots of example code
Easy to reuse C-code from other projects
Libraries can be written in C++
Lots of libraries available

13.
int ledPin = 13;
// LED connected to digital pin 13
// The setup() method runs once, when the sketch starts
void setup() {
// initialize the digital pin as an output:
pinMode(ledPin, OUTPUT);
}
// the loop() method runs over and over again,
// as long as the Arduino has powervoid
loop()
{
digitalWrite(ledPin, HIGH); // set the LED on
delay(500); // wait for half a second
digitalWrite(ledPin, LOW);
// set the LED off
delay(500); // wait for half a second