light_interface.h 900 B

12345678910111213141516171819
  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 StatusLED_AccessPointFailure() WS2812_SetColor(WS2812_RED, WS2812_PULSE)
  7. #define StatusLED_SystemFailure() WS2812_SetColor(WS2812_RED, WS2812_SOLID)
  8. #define StatusLED_AccessPointSearching() WS2812_SetColor(WS2812_GREEN, WS2812_PULSE)
  9. #define StatusLED_AccessPointNoCredentials() WS2812_SetColor(WS2812_GREEN, WS2812_SOLID)
  10. #define StatusLED_BrokerFailure() WS2812_SetColor(WS2812_BLUE, WS2812_PULSE)
  11. #define StatusLED_BrokerSuccess() WS2812_SetColor(WS2812_BLUE, WS2812_SOLID)
  12. #define StatusLED_AdaptiveIMU() WS2812_SetColor(WS2812_MAGENTA, WS2812_SOLID)
  13. #define StatusLED_AdaptiveBar() WS2812_SetColor(WS2812_ORANGE, WS2812_SOLID)
  14. void StatusLED_Shutdown(void);
  15. #endif