evansusu wrote: ↑
Tue Jul 09, 2019 7:00 am
Any tips or codes on a lamp with a light intensity sensor on a raspberry pi which depends on surrounding light intensity? turn on when dark, turn off when dim
See the last example in Section 2.18 of the documentation for the gpiozero
library: https://gpiozero.readthedocs.io/en/stab ... ght-sensor
"change brightness according to the detected light level" - 6 lines of python!