You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
847 B
31 lines
847 B
#ifndef _LIGHT_H_
|
|
#define _LIGHT_H_
|
|
|
|
#include "board.h"
|
|
#include "lib_config.h"
|
|
#include "port.h"
|
|
#include "system_ES8P5066.h"
|
|
#include "systick.h"
|
|
|
|
typedef enum {
|
|
krgb_close = 0, /*关闭灯*/
|
|
krgb_color_green = 1, /*打开绿灯*/
|
|
krgb_color_blue = 2, /*打开蓝灯*/
|
|
krgb_color_red = 3, /*打开红灯*/
|
|
|
|
} rgb_light_mode_t;
|
|
|
|
void light_module_set_rgb_mode(rgb_light_mode_t mode);
|
|
void light_module_set_error_light_mode(bool open, uint8_t error_mode);
|
|
void light_module_set_autoshutdown_indicator_light(bool light);
|
|
void light_module_set_rgb_in_interval_working_mode(bool state);
|
|
void light_module_close_all_light(void);
|
|
|
|
void light_module_schedule(void);
|
|
|
|
//外部实现
|
|
int hook_get_autoshutdown_timecount();
|
|
//臭氧发生器是否工作
|
|
bool hook_get_ozone_generator_working_flag();
|
|
|
|
#endif
|