Control the LED on the FlexSense board.
More...
Control the LED on the FlexSense board.
The FlexSense offers a Blue and Green LED that can be individually controlled.
- Warning
- To maximise the battery life of your FlexSense, we recommend limiting how often and how long the LED is on.
◆ FLEX_LEDState
LED States.
Enumerator |
---|
FLEX_LED_ON | turn LED On
|
FLEX_LED_OFF | turn LED Off
|
◆ FLEX_LEDGreenStateSet()
Change the state of the Green LED.
- Note
- To maximise the battery life of your FlexSense, we recommend limiting how often and how long the LED is on.
- Parameters
-
- Returns
- FLEX_SUCCESS (0) if succeeded and < 0 if failed.
- Return values
-
-FLEX_ERROR_IO_EXPANDER | failed to initialise or configure expander device |
◆ FLEX_LEDBlueStateSet()
Change the state of the Blue LED.
- Note
- To maximise the battery life of your FlexSense, we recommend limiting how often and how long the LED is on.
- Parameters
-
- Returns
- FLEX_SUCCESS (0) if succeeded and < 0 if failed.
- Return values
-
-FLEX_ERROR_IO_EXPANDER | failed to initialise or configure expander device |