This module provides the functions to control the FRDM-KW40Z board LED functionality.
The available actions are:
- Initialize the LED module
- Turn the LEDs On/Off
- Toggle the LEDs
| #define LED_CONTROL_NUMBER_OF_LEDS |
Number of LEDs on the board.
Enumeration of all possible return status for the LED Control functions.
| Enumerator |
|---|
| kStatusOk |
No errors.
|
| kStatusLedNumberOutOfRange |
LED number is out of range.
|
| kStatusInvalidCommand |
Invalid Command.
|
| kStatusUnexpectedError |
Unexpected error.
|
Enumeration of all available commands.
| Enumerator |
|---|
| kLedControlOff |
Turn off the LED.
|
| kLedControlOn |
Turn on the LED.
|
| kLedControlToggle |
Toggle the LED.
|
| kLedControlInvalidCommand |
Invalid command.
|
| void led_control_init |
( |
void |
| ) |
|
Initializes all hardware required for the LED control
- Parameters
-
- Returns
- Void
Updates the LED with the provided data
- Parameters
-
| [in] | ledNumber | The number of LEDs to update |
| [in] | command | The action to apply |
- Returns
- led_control_status_t Error status for the operation.