From 77974685babe0a6cf15b463e27ff157ae2e065ce Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Sun, 25 Jan 2026 23:27:34 +0100 Subject: [PATCH] Comments --- .../apps/com.micropythonos.showbattery/assets/hello.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/internal_filesystem/apps/com.micropythonos.showbattery/assets/hello.py b/internal_filesystem/apps/com.micropythonos.showbattery/assets/hello.py index d8d043d8..a9622ba8 100644 --- a/internal_filesystem/apps/com.micropythonos.showbattery/assets/hello.py +++ b/internal_filesystem/apps/com.micropythonos.showbattery/assets/hello.py @@ -1,13 +1,4 @@ """ -8:44 4.15V -8:46 4.13V - -import time -v = mpos.battery_voltage.read_battery_voltage() -percent = mpos.battery_voltage.get_battery_percentage() -text = f"{time.localtime()}: {v}V is {percent}%" -text - from machine import ADC, Pin # do this inside the try because it will fail on desktop adc = ADC(Pin(13)) # Set ADC to 11dB attenuation for 0–3.3V range (common for ESP32)