/* Toggling LED0 on EduBase V2 * There are four LEDs on the EduBase v2 board * They are LED0, LED1,LEF2 and LED3. * The LED0 is on the most right. * * LED0 is connected to pin 2. * * This is the first test of EduBase V2 board. * Run this test only after you have tested * your Arduino Nano. */ const int LED = 2; /* LED */ const int mydelay = 750; /* delay size */ void setup() { pinMode(LED, OUTPUT); /* set LED pin as output */ } void loop() { digitalWrite(LED,HIGH); /* turn on the LED */ delay(mydelay); /* delay 750 ms */ digitalWrite(LED,LOW); /* turn off the LED */ delay(mydelay); /* delay 750 ms */ }