We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab42976 commit 12ff67cCopy full SHA for 12ff67c
internal_filesystem/lib/mpos/battery_voltage.py
@@ -13,6 +13,10 @@
13
CACHE_DURATION_ADC1_MS = 30000 # 30 seconds (cheaper: no WiFi interference)
14
CACHE_DURATION_ADC2_MS = 600000 # 600 seconds (expensive: requires WiFi disable)
15
#CACHE_DURATION_ADC2_MS = CACHE_DURATION_ADC1_MS # trigger frequent disconnections for debugging OSUpdate resume
16
+# Or at runtime, do:
17
+# import mpos.battery_voltage
18
+# mpos.battery_voltage.CACHE_DURATION_ADC2_MS = 30000
19
+
20
21
def _is_adc2_pin(pin):
22
"""Check if pin is on ADC2 (ESP32-S3: GPIO11-20)."""
0 commit comments