Backlight support. TOUCH events feed backlight_keepalive(); After a timeout, we fade the backlight to 0 using timers. When the backlight is not active, TOUCH events are not passed to widgets, but the backlight is re-enabled; Add some flags to mos.yml to drive timeout and PWM pin for the backlight on Featherwing

This commit is contained in:
Pim van Pelt
2017-11-27 21:30:01 +01:00
parent 5f10481fb7
commit d07a0e053c
5 changed files with 118 additions and 0 deletions

View File

@ -33,6 +33,10 @@ config_schema:
- ["app", "o", {title: "APP settings"}]
- ["app.hostname", "s", {title: "Device hostname"}]
- ["app.hostname", "Mongoose Touch"]
- ["app.backlight_pin", "i", {title: "Backlight pin"}]
- ["app.backlight_pin", 22]
- ["app.inactivity_timeout", "i", {title: "Inactivity timeout in seconds"}]
- ["app.inactivity_timeout", 10]
# List of libraries used by this app, in order of initialisation
@ -43,6 +47,7 @@ libs:
- origin: https://github.com/mongoose-os-libs/rpc-service-fs
- origin: https://github.com/mongoose-os-libs/rpc-uart
- origin: https://github.com/mongoose-os-libs/prometheus-metrics
- origin: https://github.com/mongoose-os-libs/pwm
- origin: libs/lobo-spi
- origin: libs/ili9341
- origin: libs/stmpe610