
The purpose of this tutorial is to turn on an LED by the Arduino board.
As for mounting, it is easy to connect LEDs to Arduino.
1 2 3 4 5 6 |
void setup(){ pinMode(1,OUTPUT); //sets the number 1 digital terminal of the Arduino board in output mode } void loop(){ digitalWrite(1,HIGH); // the LED lights } |