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:
@@ -3,15 +3,18 @@
|
||||
#include "esp_check.h"
|
||||
#include <stdint.h>
|
||||
|
||||
esp_err_t add_light_item(const char time[5], uint8_t red, uint8_t green, uint8_t blue);
|
||||
|
||||
void cleanup_light_items(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
// Configuration structure for the simulation
|
||||
typedef struct
|
||||
{
|
||||
#endif
|
||||
void simulate(void *args);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
int cycle_duration_minutes;
|
||||
} simulation_config_t;
|
||||
|
||||
__BEGIN_DECLS
|
||||
char *get_time(void);
|
||||
|
||||
esp_err_t add_light_item(const char time[5], uint8_t red, uint8_t green, uint8_t blue);
|
||||
void cleanup_light_items(void);
|
||||
void start_simulate_day(void);
|
||||
void start_simulate_night(void);
|
||||
void start_simulation_task(void);
|
||||
__END_DECLS
|
||||
|
Reference in New Issue
Block a user