toblum / McLighting

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

Red and Green swapped #469

Closed Synthron closed 4 years ago

Synthron commented 4 years ago

Hey,

I'm using the McLighting and just noticed that R and G are swapped. When I turn on the green slider the LEDs go red and vice versa... I already tried to swap the definitions in the code but that didn't work (lines 822 - 852 in the code). Any Idea how i can fix that?

toblum commented 4 years ago

Hi @Synthron,

your can set the pixelorder via HTTP call: https://github.com/toblum/McLighting/wiki/HTTP-REST-API#get-pixelconf-http10 e.g. /pixelconf?rgbo=rgb I think GRB is default, so RGB may be the correct choice. Just try it out.

Regards