Controlling RGB LED on the Expansion Dock

The Expansion Dock has an LED that is controlled by three GPIO pins:

Using the Console:

The console is under development and is coming soon! Stay tuned!

Using the Command Line:

You can use the expled tool to specify the colour of the LED. It will use software PWM to drive the three LEDs.


expled <6 digit hex value>

Where the first two digits represent the Red value, the next two represent the Green value, and the last two represent the blue value.


expled 0xf21133

This will set the Red to 0xf2, the Green to 0x11, and the Blue to 0x33.

The LED should now be pink-ish.

Check out this site for more info on hex colours.