This commit is contained in:
Thomas Farstrike
2025-06-20 19:11:19 +02:00
parent b9154bec88
commit 77853bc926
@@ -34,7 +34,8 @@ def read_battery_voltage():
return voltage
# Main loop to read and print battery voltage
while False: # for testing
if False:
#for _ in range(10):
battery_voltage = read_battery_voltage()
print("Battery Voltage: {:.2f} V".format(battery_voltage))
time.sleep(1) # Wait 1 second