This example was toggling an RGB LED connected to digital output pins 5, 6 and 7. The particular Maple variant was the one found at Olimexino
Code
void setup()
{
//COmmon anode RGB LED
//5 – Red, 6 – Green , 7 – Blue
pinMode(5, OUTPUT); // sets the digital pin as output
pinMode(6, OUTPUT); // sets the digital pin as output
pinMode(7, OUTPUT); // sets the digital pin as output
digitalWrite(5, HIGH);
digitalWrite(6, HIGH);
digitalWrite(7, HIGH);
}
void loop()
{
digitalWrite(5, LOW); // sets the LED on
delay(1000); // waits for a second
digitalWrite(5, HIGH); // sets the LED off
delay(1000); // waits for a second
digitalWrite(6, LOW); // sets the LED on
delay(1000); // waits for a second
digitalWrite(6, HIGH); // sets the LED off
delay(1000); // waits for a second
digitalWrite(7, LOW); // sets the LED on
delay(1000); // waits for a second
digitalWrite(7, HIGH); // sets the LED off
delay(1000); // waits for a second
}