Loading...
Searching...
No Matches
furi_hal_light.h File Reference

Light control HAL API. More...

#include <stdbool.h>
#include <stdint.h>
#include <furi_hal_resources.h>

Go to the source code of this file.

Functions

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.
 

Detailed Description

Light control HAL API.

Function Documentation

◆ furi_hal_light_blink_set_color()

void furi_hal_light_blink_set_color ( Light light)

Set color in hardware LED blinking mode.

Parameters
lightLight

◆ 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
lightLight
brightnesslight brightness [0-255]
on_timeLED on time in ms
periodLED blink period in ms

◆ furi_hal_light_sequence()

void furi_hal_light_sequence ( const char * sequence)

Execute sequence.

Parameters
sequenceSequence to execute

◆ furi_hal_light_set()

void furi_hal_light_set ( Light light,
uint8_t value )

Set light value.

Parameters
lightLight
valuelight brightness [0-255]