WS2812B can't control brightness #311
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi.
I'm using Raspberry Pi 4 Model B 4GB
I connected Din pin to 18 GPIO.
LED works, I can change color.
But I can't control brightness.
Even when in settings I set brightness parameter to zero, LED still shining at the maximum brightness.
Can anybody suggest something?
Today I have tested with
strandtest.pyfromrpi_ws281xlibrary and the changing of brightness works perfect.But why doesn't it work from plugin?
Setting brightness to 200 makes no effect, same brightness as on 255 point :(
Also no effect for any other brightness point, even at 0 point, LED is still shining at the maximum brightness
Hi, have similar problem
Hi Guys, so I just had to re-setup my Pi using the RPi 4. Just make sure to follow the Neopixel instructions on the readme. then reference to Issue number 172 https://github.com/vitormhenrique/OctoPrint-Enclosure/issues/172#issuecomment-410864599
adding the DMA 10
@blackote thanks for your time, but the problem is related to BRIGHTNESS control. The solution of the problem you've recommended won't help. Why?
I've already figured out the problem, the problem is that the parameter
LED_BRIGHTNESSis not used anywhere at all.You can check it out here and LED_DMA is already working well, so you don't need to create the
LED_DMAvariable by yourself.How to solve the problem with the brightness?
You have to replace
strip = Adafruit_NeoPixel(LED_COUNT, LED_PIN, LED_FREQ_HZ, LED_DMA, LED_INVERT)in
octoprint_enclosure / neopixel_direct.pywithstrip = Adafruit_NeoPixel (LED_COUNT, LED_PIN, LED_FREQ_HZ, LED_DMA, LED_INVERT, LED_BRIGHTNESS)Then brightness control will work.
I've tested this way and everything works fine. I think now it's easy to understand, that the
LED_BRIGHTNESSparameter haven't been used and that has created the problem.I've made a pull request about this problem, hope that it'd be taken into account soon.