chrismelba / lightclockwifiv2

Code to run a neopixel strip into a pretty clock
61 stars 26 forks source link

brightness fix #6

Closed Sibilia closed 8 years ago

Sibilia commented 8 years ago

Hi! in your library chrismelba/NeoPixelBus/NeoPixelBus.h:line107 brightness in the range from 0 to 100.: SetPixelColor(n, c.R*((float)brightness/100), c.G*((float)brightness/100), c.B*((float)brightness/100));

But in lightclockwifiv2/root.h:line35 ... min='10' max='255' value=$brightness ... Because of this function face is not working properly.

To fix this, I replaced the chrismelba/NeoPixelBus/NeoPixelBus.h:line107 to: SetPixelColor(n, c.R*((float)brightness/255), c.G*((float)brightness/255), c.B*((float)brightness/255)); or it can be fixed in lightclockwifiv2/root.h:line35: ... min='10' max='100' value=$brightness ...

Due to this error as blending incorrectly displayed at maximum brightness.

Best regards