Simple App LED control

Hi all,

I’m trying to develop a simple app (following the documentation here) to control a RGB LED based on my Pixhawk 2.4.8 orientation (this doesn’t need to work while flying). I was able to successfully access the attitude’s quaternion and convert it into Euler angles. I’m a little stuck now on the “output” side of my project.

I was thinking of using the main multicolor LED, but I could also use 3 of the PWM output to control an external LED.

I’m still at the beginning therefore also pointers/idea towards a possible solution will be much appreciated. Thank you in advance for any contributions.