toblum / McLighting

The ESP8266 based multi-client lighting gadget
MIT License
1.05k stars 291 forks source link

Blink when I change number of led in live #481

Closed pbenaim closed 4 years ago

pbenaim commented 4 years ago

We can change the number of LEDs directly (in live) with http://192.168.0.xxx/pixelconf?ct=NBLED cool.

But to do this gently, for example 10 to 144, I put some intermediates, But each command turns off/on LEDs, so it's not really absolutely smooth :-)

Maybe one custom animation, in STATIC, but how define the number of leds On?

Thanks for your goods ideas ;-)

toblum commented 4 years ago

Hi @pbenaim,

I'm not sure what's the idea behind changing the number of LEDs in that way, but I don't think the WS2812FX library that does the animation job for McLighting in the background wasn't built to be used that way.

Maybe you want to have a look at the Range commands in the MQTT and Websocket protocol: https://github.com/toblum/McLighting/wiki/WebSocket-API#payload-numledhexrgbnumledhexrgbnumledhexrgb-

Best regards Tobias

pbenaim commented 4 years ago

Work very well 👍 And with beta I can play with more than 99 🥇