works so far, just tweaks left

This commit is contained in:
2026-03-15 22:07:15 +01:00
parent 223d38c295
commit a671f7f33e
14 changed files with 321 additions and 290 deletions

14
include/light_driver.h Normal file
View File

@@ -0,0 +1,14 @@
#ifndef LIGHT_DRIVER_H
#define LIGHT_DRIVER_H
#define LIGHT_DEFAULT_OFF (0)
#define LIGHT_DEFAULT_ON (1)
#include "esp_err.h"
#include "stdbool.h"
esp_err_t light_driver_init(bool default_state);
esp_err_t light_driver_set_level(uint8_t level, uint16_t transition_ms);
esp_err_t light_driver_set_power(bool power, uint16_t transition_ms);
#endif //LIGHT_DRIVER_H