pimoroni / grow-python

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

Add light sensitivity to config. Add option to draw black to screen when low light level hit. #6

Closed shane-powell closed 2 years ago

shane-powell commented 3 years ago

This is just a couple of small potential changes.

The first adds configuration of the light sensor to the config file. I have set it to the same value it was hardcoded to (4.0).

The second may only help people with the first batch of grows where the screen does not go off. This adds a new option to the config file (disabled by default) which will just draw a black screen in low light level situations.

I don't know the specifics of the issue with the first batch of grow hats but if its that calling the backlight function does not work (and it works with the new ones then this can be added.

Gadgetoid commented 3 years ago

Thanks for taking the time to PR this! I've got to find the time to test and merge - juggling all the things, as always - but your teaser looked good! Drawing a blank screen probably makes sense in either case.

Could you push a dummy commit up to this to kick off the GitHub Actions? I think that's the only way to get them moving.

Something like:

git commit --allow-empty -m "Trigger GitHub actions"
shane-powell commented 3 years ago

Done. Its alive!