Light control HAL API.
More...
#include <stdbool.h>
#include <stdint.h>
#include <furi_hal_resources.h>
Go to the source code of this file.
|
void | furi_hal_light_init (void) |
| Init light driver.
|
|
void | furi_hal_light_set (Light light, uint8_t value) |
| Set light value.
|
|
void | furi_hal_light_blink_start (Light light, uint8_t brightness, uint16_t on_time, uint16_t period) |
| Start hardware LED blinking mode.
|
|
void | furi_hal_light_blink_stop (void) |
| Stop hardware LED blinking mode.
|
|
void | furi_hal_light_blink_set_color (Light light) |
| Set color in hardware LED blinking mode.
|
|
void | furi_hal_light_sequence (const char *sequence) |
| Execute sequence.
|
|
◆ furi_hal_light_blink_set_color()
void furi_hal_light_blink_set_color |
( |
Light | light | ) |
|
Set color in hardware LED blinking mode.
- Parameters
-
◆ furi_hal_light_blink_start()
void furi_hal_light_blink_start |
( |
Light | light, |
|
|
uint8_t | brightness, |
|
|
uint16_t | on_time, |
|
|
uint16_t | period ) |
Start hardware LED blinking mode.
- Parameters
-
light | Light |
brightness | light brightness [0-255] |
on_time | LED on time in ms |
period | LED blink period in ms |
◆ furi_hal_light_sequence()
void furi_hal_light_sequence |
( |
const char * | sequence | ) |
|
Execute sequence.
- Parameters
-
sequence | Sequence to execute |
◆ furi_hal_light_set()
void furi_hal_light_set |
( |
Light | light, |
|
|
uint8_t | value ) |
Set light value.
- Parameters
-
light | Light |
value | light brightness [0-255] |