WKHarmon / led-sectional

MIT License
35 stars 20 forks source link

New install turns off LEDs when room is dark #25

Open jasonfish opened 1 year ago

jasonfish commented 1 year ago

My first build was about 4 years ago, has been running fine. I recently pulled all the latest changes due to the URL change, re-inserted all my parameters, and built to the same HUZZAH board. All seems to work the same except the lowest brightness threshold.

In the past, the map brightness would lower to a certain point (50) and just stay there, no matter how dark the room got. Now though, the light reading seems to bounce above/below some unknown boundary, so the whole map constantly turns on and off. It's not rebooting; it's fully colored, then off, then fully colored again. This is easiest to repro by walking past the map, as my shadow can change the ambient light just enough, but it also does this when I'm sitting across the room, which is pretty distracting.

My settings used to be

define MIN_BRIGHTNESS 50

define MAX_BRIGHTNESS 255

define MIN_LIGHT 1

define MAX_LIGHT 1024

I've tried changing the MIN_LIGHT to 16 as suggested in the sketch, but this seems to make the map turn off in even brighter light (worse). Setting MIN_LIGHT to 0 seems to help, but doesn't solve it.

How can I set the map to never turn completely off, yet retain the auto-brightness functionality?

jasonfish commented 8 months ago

Any ideas?