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
|
||||
12
include/zigbee.h
Normal file
12
include/zigbee.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef ZIGBEE_H
|
||||
#define ZIGBEE_H
|
||||
|
||||
typedef struct zcl_basic_manufacturer_info_s {
|
||||
char *manufacturer_name;
|
||||
char *model_identifier;
|
||||
} zcl_basic_manufacturer_info_t;
|
||||
|
||||
void zigbee_init(void);
|
||||
void zigbee_task(void* pvParameters);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user