This section provides APIs for configuring and controlling the tri-color led.

config_led_gpios

Prototype void config_led_gpios()
Input Arguments None
Return Value None
Description Set the direction of the gpio pins to output mode
Example Usage config_led_gpios();

 

triled_on

Prototype void triled_on(uint8_t color)
Input Arguments uint8_t  color : led color
Return Value None
Description ON the specific color
Example Usage triled_on(RED);

 

triled_off

Prototype void triled_off()
Input Arguments None
Return Value None
Description OFF all the leds
Example Usage triled_off();