RGB led
This was an RGB Led breakout example connected to our mbed LPC1768 board, we used a common anode type. here is a picture of the module, you could of course use.
This is a basic example with the ST Nucleo F334R8 board, this uses the mbed online compiler. In this example we flash the red, green and blue colours of an RGB.