Is the front lighting controllable via software? Could a timer be written such that if turned on by a button, it turns off after a programmed amount of time?
Originally submitted via email support on 4 January 2024. Migrated to the forum for community visibility.
The frontlight is only available on the 6PLUS model. Here’s the example on how to use frontlight:
Yes, an auto-off timer can be implemented. You could use millis(); or use one of ESP32’s timers if you need it to be non-blocking. Here’s a library for this: