rpi-ws281x / rpi-ws281x-java

Apache License 2.0
19 stars 20 forks source link

Fixed getBrightness() from returning default brightness #19

Closed 97WaterPolo closed 10 months ago

97WaterPolo commented 3 years ago

Currently Ws281xLedStrip#getBrightness() returns the int brightness which is set at the constructor.

When updating the brightness using Ws281xLedStrip#setBrightness(int) the ws2811_channel_t's brightness gets updated but never Ws281xLedStrip#brightness.

Altered the Ws281xLedStrip#setBrightness(int) to update the brightness so Ws281xLedStrip#getBrightness() returns the correct value.