implement new light mode (off/day/night/simulation)
missing: - fully connect it to the ui - setup duration in light settings Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
18
firmware/components/led-manager/include/led_strip_ws2812.h
Normal file
18
firmware/components/led-manager/include/led_strip_ws2812.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#include "color.h"
|
||||
#include <esp_check.h>
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
typedef enum
|
||||
{
|
||||
LED_STATE_OFF,
|
||||
LED_STATE_DAY,
|
||||
LED_STATE_NIGHT,
|
||||
LED_STATE_SIMULATION,
|
||||
} led_state_t;
|
||||
|
||||
__BEGIN_DECLS
|
||||
esp_err_t led_strip_init(void);
|
||||
esp_err_t led_strip_update(led_state_t state, rgb_t color);
|
||||
__END_DECLS
|
Reference in New Issue
Block a user