This example shows how to use a statechart and some C code to control a RGB LED attached to the Raspberry Pi.
To compile it for the Pi, you need a cross compiler set up, or you need to compile it directly on the Pi.
The project was designed on a Linux machine and uses the pthread library.
For further instructions, please see the associated blog post.