adafruit / Adafruit_CircuitPython_CircuitPlayground

CircuitPython library for Circuit Playground Express
MIT License
91 stars 71 forks source link

cpx.pixels.brightness on Circuit Playground Express Doesn't seem to really dim the leds #126

Closed ondrovic closed 1 year ago

ondrovic commented 1 year ago

I have tried setting the following between all the different ranges for 0.1 to 1.0 and the brightness level never seems to change

using the following code

cpx.pixels.brightness = 0.1

Is there anyway to make the leds not so blinding?

dhalbert commented 1 year ago

Could you show your code? When I set the brightness, the current levels are decreased. What version of the library and CircuitPython are you using?

ondrovic commented 1 year ago

sure

# boot_out.txt
Adafruit CircuitPython 8.2.0 on 2023-07-05; Adafruit CircuitPlayground Express with samd21g18
Board ID:circuitplayground_express

using MU version 1.2.0

# import adafruit_os.path as path
from adafruit_circuitplayground.express import cpx

LED_BRIGHTNESS = 0.1

while True:
    # Make less bright (not blinding!)
    cpx.pixels.brightness = LED_BRIGTHNESS
    # Turn ON all the NeoPixels
    cpx.pixels.fill((0, 127, 255))

Nothing too complicated

So I did noticed that incrementing them up they do get brighter, I guess the 0.1 is still pretty bright I don't this is an actual issue.

Setting to 0.05 was what I was looking for