wirekraken / ESP8266-Websockets-LED

Real-time addressable LED strip (ws2811/ws2812/ws2812b) control using ESP8266 via web interface.
GNU General Public License v3.0
68 stars 26 forks source link

LED_COUNT #2

Closed Vasek-R closed 1 year ago

Vasek-R commented 3 years ago

Thanks for your code it saved me a lot of time 👍 Hi using your project I found that if the number of leds exceed 254 program does not start. Using the same library FastLED v3.3.3 by Danie Garcia with other sketch works fine with higher number of leds more i found I have to add

define FASTLED_ALLOW_INTERRUPTS 0

define FASTLED_INTERRUPT_RETRY_COUNT 0

define FASTLED_ESP8266_RAW_PIN_ORDER

//before

include

could you pls check if there is a possible type conflict with LED_COUNT? Spasibo bolshoe 🥇

crazy888 commented 3 years ago

If habe the same problem. LED_COUNT > 254 brakes the programm. Feels being a SHORT only.

UPDATE: I found the problem. You need to correct datatype of LED_COUNT in led_effects.ino to make it work.

In the attachment you can find the working ino file.

Running acutally with 448 LEDs. Thanks for the sketch!!!

led_effects.zip

rmaksim commented 2 years ago

in led_effect.ino

void updateColor(...{...}

for(uint8_t i

need replace uint8_t -> int