toblum / McLighting

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

Just a flicker on WS set single pixel command #31

Closed loucal-sh closed 7 years ago

loucal-sh commented 7 years ago

I am not able to control single pixels with commands like !01FF00FF, although I do see a brief flicker. I have tried different modes although I would expect static to be the correct way to do this. Can anyone else verify that this isn't just me?

andrewbickers commented 7 years ago

I have the same issue, i posted over on gitter a few days ago. i mentioned all LEDS turn red but i also saw the flicker a few times.

@toblum Great project but i have a small issue with Web Sockets - i am attempting to turn on a single LED however all LEDS are lighting as red - please see serial output with evidence - i set LED 2 to 00FF00 (i.e green) Status returns Static and 255, 0,0 i.e all LEDS Red is this a bug?

WS: [0] Connected from 192.168.1.6 url: / WS: [0] get Text: !0200FF00 WS: Set single led [2] to [0] [255] [0]! WS: [0] get Text: $ Get status info.{"mode":1, "ws2812fx_mode":0, "ws2812fx_mode_name":"Static", "speed":10, "brightness":192, "color":[255, 0, 0]} WS: [0] Disconnected!

toblum commented 7 years ago

Dear @loucal-sh and @andrewbickers,

I found out why this happens and was able to fix it: https://github.com/toblum/McLighting/commit/ae371e08448ffee981a27f899f8083261c27ced4

It's in the latest version.

Regards Tobias