add widget_battery() which shows the LiPo state of charge

This commit is contained in:
Pim van Pelt
2017-11-27 22:36:38 +01:00
parent d07a0e053c
commit 4aa8c56f40
4 changed files with 74 additions and 3 deletions

View File

@ -23,6 +23,7 @@ filesystem:
- fs
config_schema:
- ["sys.esp32_adc_vref", 3300] # ADC Vref is 3.3V
- ["wifi.ap.enable", false]
- ["wifi.sta.enable", true]
- ["wifi.sta.ssid", "dapches-iot"]
@ -48,6 +49,7 @@ libs:
- 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: https://github.com/mongoose-os-libs/adc
- origin: libs/lobo-spi
- origin: libs/ili9341
- origin: libs/stmpe610