light_interface.h 977 B

123456789101112131415161718192021
  1. #ifndef LIGHT_INTERFACE_H
  2. #define LIGHT_INTERFACE_H
  3. #include "esp_common.h"
  4. #include "log/esp_log.h"
  5. #include "hal/ws2812.h"
  6. #define Light_AccessPointFailure() WS2812_SetColor(WS2812_RED, WS2812_PULSE)
  7. #define Light_SystemFailure() WS2812_SetColor(WS2812_RED, WS2812_SOLID)
  8. #define Light_AccessPointSearching() WS2812_SetColor(WS2812_GREEN, WS2812_PULSE)
  9. #define Light_AccessPointNoCredentials() WS2812_SetColor(WS2812_GREEN, WS2812_SOLID)
  10. #define Light_BrokerFailure() WS2812_SetColor(WS2812_BLUE, WS2812_PULSE)
  11. #define Light_AccessPointConnected() WS2812_SetColor(WS2812_BLUE, WS2812_PULSE)
  12. #define Light_BrokerSuccess() WS2812_SetColor(WS2812_BLUE, WS2812_SOLID)
  13. #define Light_AdaptiveIMU() WS2812_SetColor(WS2812_MAGENTA, WS2812_SOLID)
  14. #define Light_AdaptiveBar() WS2812_SetColor(WS2812_ORANGE, WS2812_SOLID)
  15. void Light_Shutdown(void);
  16. void Light_Restart(void);
  17. #endif