15 lines
400 B
C
15 lines
400 B
C
#ifndef LIGHT_DRIVER_H
|
|
#define LIGHT_DRIVER_H
|
|
|
|
#define LIGHT_DEFAULT_OFF (0)
|
|
#define LIGHT_DEFAULT_ON (1)
|
|
#define ZIGBEE_LIGHT_LEVELS (254)
|
|
|
|
#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
|