works so far, just tweaks left
This commit is contained in:
14
include/light_driver.h
Normal file
14
include/light_driver.h
Normal 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
|
||||
Reference in New Issue
Block a user