Bandeau de LEDs contrôlable (puissance, couleur, effet) au travers de Home Assistant
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.

33 lines
838 B

3 years ago
  1. // LED
  2. #define LED_NUM 300
  3. #define LED_PIN 5 // = D1
  4. #define LED_CHIPSET WS2812B
  5. #define LED_COLOR_ORDER GRB
  6. #define LED_BRIGHTNESS_DEFAULT 96
  7. #define LED_SPEED_DEFAULT 120
  8. #define LED_COLOR_DEFAULT CRGB::Red
  9. #define LED_EFFECT_OFF 1
  10. #define LED_EFFECT_CYLON 2
  11. #define LED_EFFECT_FULLRED 3
  12. #define LED_EFFECT_ERROR 4
  13. // WIFI
  14. #define WIFI_SSID "XXX"
  15. #define WIFI_PASSWORD "XXX"
  16. // MQTT
  17. #define MQTT_SERVER "XXX"
  18. #define MQTT_PORT 1883
  19. #define MQTT_USER "XXX"
  20. #define MQTT_PASS "XXX"
  21. #define MQTT_LED_EFFECT "strip1/seteffect"
  22. #define MQTT_LED_BRIGHTNESS "strip1/setbrightness"
  23. #define MQTT_LED_SPEED "strip1/setspeed"
  24. #define MQTT_LED_COLOR "strip1/setcolor"
  25. // FastLED
  26. // TODO : essayer, devrait limiter le flikering
  27. //#define FASTLED_ALLOW_INTERRUPTS 0
  28. #define FASTLED_ESP8266_NODEMCU_PIN_ORDER