If you haven't already done that, download Navio2 drivers and examples code here.


Move to the folder with the source code, compile and run the example

cd C++/Examples/LED2
sudo ./LED


Move to the folder with the code and run the example:

cd Python
sudo python LED.py

In this example Navio2 LED changes color every second and outputs the color name to console.

LED is yellow
LED is green
LED is cyan
LED is blue

For further information see source code. You can change LED color using led.setColor() function, which takes color name as an argument. List of colors defined in Navio2/C++/Navio/RGBled.h