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

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. #ifndef _LIGHT_H_
  2. #define _LIGHT_H_
  3. #include "board.h"
  4. #include "lib_config.h"
  5. #include "port.h"
  6. #include "system_ES8P5066.h"
  7. #include "systick.h"
  8. typedef enum {
  9. krgb_close = 0, /*关闭灯*/
  10. krgb_color_green = 1, /*打开绿灯*/
  11. krgb_color_blue = 2, /*打开蓝灯*/
  12. krgb_color_red = 3, /*打开红灯*/
  13. } rgb_light_mode_t;
  14. void light_module_set_rgb_mode(rgb_light_mode_t mode);
  15. void light_module_set_error_light_mode(bool open, uint8_t error_mode);
  16. void light_module_set_autoshutdown_indicator_light(bool light);
  17. void light_module_set_rgb_in_interval_working_mode(bool state);
  18. void light_module_close_all_light(void);
  19. void light_module_schedule(void);
  20. //外部实现
  21. int hook_get_autoshutdown_timecount();
  22. //臭氧发生器是否工作
  23. bool hook_get_ozone_generator_working_flag();
  24. #endif