21 lines
556 B
C
21 lines
556 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
|
|
#include "esp_err.h"
|
|
#include "sdkconfig.h"
|
|
|
|
#ifndef CONFIG_WATCH_WS2812_LED_COUNT
|
|
#define CONFIG_WATCH_WS2812_LED_COUNT 5
|
|
#endif
|
|
|
|
#define WS2812_STATUS_LED_COUNT CONFIG_WATCH_WS2812_LED_COUNT
|
|
|
|
esp_err_t ws2812_status_init(void);
|
|
esp_err_t ws2812_status_set_channel_state(size_t channel, bool enabled);
|
|
esp_err_t ws2812_status_mark_active(size_t channel);
|
|
esp_err_t ws2812_status_clear_active(void);
|
|
esp_err_t ws2812_status_set_error(bool has_error);
|
|
esp_err_t ws2812_status_refresh_from_dcdc(void);
|