Skip to content

Commit 3fb85ec

Browse files
committed
Add print to identify monitor type.
1 parent 1ef9a97 commit 3fb85ec

File tree

1 file changed

+2
-0
lines changed
  • CircuitPython_Templates/power_management_measuring_battery

1 file changed

+2
-0
lines changed

CircuitPython_Templates/power_management_measuring_battery/code.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@
2424
lc709203.pack_size = PackSize.MAH400
2525

2626
device = lc709203
27+
print("Battery monitor: LC709203")
2728

2829
elif 0x36 in i2c_address_list:
2930
max17048 = MAX17048(board.I2C())
3031

3132
device = max17048
33+
print("Battery monitor: MAX17048")
3234

3335
else:
3436
raise Exception("Battery monitor not found.")

0 commit comments

Comments
 (0)