int led_red = 10; // Pin for red int led_green = 11; // Pin for green int led_blue = 12; // Pin for blue voidsetup(){ // Initialization of output pins for the LEDs pinMode(led_red, OUTPUT); pinMode(led_green, OUTPUT); pinMode(led_blue, OUTPUT); } // Main program loop voidloop(){ digitalWrite(led_red, HIGH); // red LED is switched on digitalWrite(led_green, LOW); // green LED is switched off digitalWrite(led_blue, LOW); // blue LED is switched off delay(3000); // Wait for 3 seconds digitalWrite(led_red, LOW); // red LED is switched off digitalWrite(led_green, HIGH); // green LED is switched on digitalWrite(led_blue, LOW); // blue LED is switched off delay(3000); // Wait for 3 seconds digitalWrite(led_red, LOW); // red LED is switched off digitalWrite(led_green, LOW); // green LED is switched off digitalWrite(led_blue, HIGH); // blue LED is switched on delay(3000); // Wait for 3 seconds }