pimoroni / unicorn-hat

Python library for Unicorn pHAT and HAT. 32 or 64 blinding ws2812 pixels for your Raspberry Pi
https://shop.pimoroni.com/products/unicorn-hat
MIT License
370 stars 131 forks source link

Disable warnings for brightness #142

Open wetnun opened 3 years ago

wetnun commented 3 years ago

https://github.com/pimoroni/unicorn-hat/blob/657deffc385895d43a81828c30355e5051cce6c7/library/UnicornHat/unicornhat.py#L236

While yes, the HAT might not light up, unless I'm going to trap stdout for this, it's really annoying. There should be a flag to disable the warning (or env var, or whatever makes more sense) for when you know you're doing something that might not work.