#define LED_BLUE (25) // this is not a variable, and does not use any RAM on the microcontroller #define LED_GREEN (16) #define LED_RED (17) const int numBlinks = 10; //Number of times to blink each LED const int blinkInterval = 500; // Time (in milliseconds) for each blink void setup() { // put your setup code here, to run once: pinMode(LED_BLUE,OUTPUT); pinMode(LED_GREEN,OUTPUT); pinMode(LED_RED,OUTPUT); } void loop() { // Blink the blue LED for (int i = 0; i < numBlinks; i++) { digitalWrite(LED_BLUE, HIGH); // Turn on the blue LED delay(blinkInterval); // Wait for a while digitalWrite(LED_BLUE, LOW); // Turn off the blue LED delay(blinkInterval); // Wait for a while } // Blink the green LED for (int i = 0; i < numBlinks; i++) { digitalWrite(LED_GREEN, HIGH); // Turn on the green LED delay(blinkInterval); // Wait for a while digitalWrite(LED_GREEN, LOW); // Turn off the green LED delay(blinkInterval); // Wait for a while } // Blink the red LED for (int i = 0; i < numBlinks; i++) { digitalWrite(LED_RED, HIGH); // Turn on the red LED delay(blinkInterval); // Wait for a while digitalWrite(LED_RED, LOW); // Turn off the red LED delay(blinkInterval); // Wait for a while } while (true) { // Do nothing, the program will stop here } }