adafruit / Adafruit_CircuitPython_HT16K33

Adafruit CircuitPython driver for the HT16K33, a LED matrix driver IC.
MIT License
41 stars 29 forks source link

Modify the brightness property. #62

Closed geekguy-wy closed 4 years ago

geekguy-wy commented 4 years ago

To make the library consistent with displayio, modify the brightness property so it uses a float instead of an int.

caternuson commented 4 years ago

With a range 0.0 to 1.0: https://circuitpython.readthedocs.io/en/latest/shared-bindings/displayio/Display.html#displayio.Display.brightness

geekguy-wy commented 4 years ago

Got it, thanks. I already have the function to do the mapping from float to the range 0 to 15.

makermelissa commented 4 years ago

It's now merged in.