pimoroni / grow-python

Python libs for controlling the Grow HATs
MIT License
55 stars 44 forks source link

Feature request: turn off display at night #15

Open patoberli opened 3 years ago

patoberli commented 3 years ago

Hi all I have a little feature request. It would be great if the light sensor could be used to disable the display at night. That should also increase the lifespan of the display.

Thanks for adding this :)

MikLang commented 2 years ago

I implemented this in my examples/monitor.py file, but somehow the changes are not used. Is this the right file to modify?

patoberli commented 2 years ago

I have no idea, but could you also post your modification? I have also seen some other LCDs in the past that actually could not be turned off, like the one I have on my Octoprint, which is kind of sad.

Gadgetoid commented 2 years ago

Have merged #6 which supports this functionality, but doesn't actually turn off the display- ie: it just draws a black screen.

I'll need to add full off support into the ST7735 driver. Have raised https://github.com/pimoroni/st7735-python/issues/17 to track this.