2023-11-25 21:05:52 +00:00
|
|
|
#include <furi.h>
|
|
|
|
#include <furi_hal.h>
|
|
|
|
|
2023-12-16 16:47:55 +00:00
|
|
|
#define MAX_LED_COUNT 512
|
2023-12-06 18:40:19 +00:00
|
|
|
|
2023-11-25 21:05:52 +00:00
|
|
|
typedef struct LedDriver LedDriver;
|
|
|
|
|
|
|
|
LedDriver* led_driver_alloc(int count_leds, const GpioPin* gpio);
|
|
|
|
void led_driver_free(LedDriver* led_driver);
|
2023-12-06 18:40:19 +00:00
|
|
|
void led_driver_set_pin(LedDriver* led_driver, const GpioPin* gpio);
|
2023-11-25 21:05:52 +00:00
|
|
|
uint32_t led_driver_set_led(LedDriver* led_driver, uint32_t index, uint32_t rrggbb);
|
|
|
|
uint32_t led_driver_get_led(LedDriver* led_driver, uint32_t index);
|
2023-12-06 18:40:19 +00:00
|
|
|
void led_driver_transmit(LedDriver* led_driver, bool transmit_if_clean);
|