Functions | |
int | AppLed_SetActive (int index, int state) |
Enable an LED in the AppLed subsystem. | |
int | AppLed_GetActive (int index) |
Read whether an AppLed is enabled. | |
int | AppLed_SetState (int index, int state) |
Turn an LED on or off. | |
int | AppLed_GetState (int index) |
Read whether an LED is on or off. |
int AppLed_GetActive | ( | int | index | ) |
Read whether an AppLed is enabled.
index | An integer specifying which LED (0-3). |
if(AppLed_GetActive(1)) { // LED 1 is enabled } else { // LED 1 is not enabled }
int AppLed_GetState | ( | int | index | ) |
Read whether an LED is on or off.
index | An integer specifying which LED (0-3). |
if(AppLed_GetState(2)) { // LED 2 is currently on } else { // LED 2 is currently off }
int AppLed_SetActive | ( | int | index, | |
int | state | |||
) |
Enable an LED in the AppLed subsystem.
index | An integer specifying which LED (0-3). | |
state | An integer specifying locked/active (1) or unlocked/inactive (0). |
// enable LED 0 AppLed_SetActive(0, 1);
int AppLed_SetState | ( | int | index, | |
int | state | |||
) |
Turn an LED on or off.
Sets whether the specified LED on the Application Board is on or off.
index | an integer specifying which LED (0-3). | |
state | an integer specifying on (1) or off (0). |
// turn on LED 2 AppLed_SetState( 2, 1 );