Ex01 – Blinking LED


Type the following program into the text edit area (see below) and then press the upload button to upload your program into the board. The program will make the LED on the board keep blinking and never ends. We will discuss the details of programming starting with next lessons.

void setup()   {
   pinMode(8, OUTPUT); // initialize the digital pin as an output:

void loop() {
   digitalWrite(8, HIGH);   // set the LED on  
   delay(1000);                  // wait for a second
   digitalWrite(8, LOW);    // set the LED off
   delay(1000);                  // wait for a second (1000 milli seconds)

After uploading the program, if you can see a LED on the board is blinking, then the uploading is succeeded!