pimoroni / grow-python

Python libs for controlling the Grow HATs
MIT License
57 stars 43 forks source link

Display can't be used when light is low config is enabled #33

Open tomjn opened 1 year ago

tomjn commented 1 year ago

There's a config option black_screen_when_light_low that lets you turn the display off in low light.

However, my finger casts a shadow when pressing the buttons, fooling the sensor into thinking it's night time and disabling the buttons.

A timer or counter of some kind that disables the functionality and keeps the backlight/display on when you press a button for 10s regardless of how low the light might be a useful

tomjn commented 10 months ago

Thinking more about this, a counter that's reduced by 1 when light is low every second would help. Pressing a button, or light being high would reset the counter to a high number ensuring it doesn't flicker on and off ( my grow hat was flickering with the backlight reflecting off things and triggering a back and forth state ).