Skip to content

Commit 440e019

Browse files
authored
Update picowbell doubler CP example
65535 instead of 65536
1 parent f49f34f commit 440e019

File tree

1 file changed

+1
-1
lines changed
  • PiCowbell_Doubler/CircuitPython_PiCowbell_Doubler_Battery_Monitor

1 file changed

+1
-1
lines changed

PiCowbell_Doubler/CircuitPython_PiCowbell_Doubler_Battery_Monitor/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
analog_in = AnalogIn(board.A3)
1414

1515
def get_vsys(pin):
16-
return ((pin.value * 3) * 3.3) / 65536
16+
return ((pin.value * 3) * 3.3) / 65535
1717

1818
while True:
1919
led.value = True

0 commit comments

Comments
 (0)