light_interface.h 864 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 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_BrokerSuccess() WS2812_SetColor(WS2812_BLUE, WS2812_SOLID)
  12. #define Light_AdaptiveIMU() WS2812_SetColor(WS2812_MAGENTA, WS2812_SOLID)
  13. #define Light_AdaptiveBar() WS2812_SetColor(WS2812_ORANGE, WS2812_SOLID)
  14. void Light_Shutdown(void);
  15. #endif