#include #define redLED 9 // controls red LEDs #define greenLED 10 // controls green LEDs #define blueLED 11 // controls blue LEDs int colours[][3] = { {255, 0, 0}, // red { 0,255, 0}, // greeen { 0, 0,255}, // blue {255, 0,255}, // fuscia {255,102, 0}, // orange {255, 20,147}, // pink 5 {148, 0,211}, // violet {255,255,255}, // white {255,255, 0}, // yellow {124,252, 0}, // lime green { 0,100, 0}, // dark green 10 { 0,255,255}, // cyan {128, 0, 0}, // maroon {128,128,128}, // dark grey { 0, 0, 80} // navy blue }; const int NUM_COLOURS = ( sizeof(colours) / (sizeof(int)*3) ); int gRandIndex = 0; void setup() { Serial.begin(57600); Serial.println( "Arduino starting LED test" ); // seed with an unconnected pin randomSeed( analogRead(0) ); Serial.println( "Blinking colours" ); int count=0; for( count=0;count