Update picowbell doubler CP example
65535 instead of 65536
This commit is contained in:
parent
f49f34f4b0
commit
440e0198a3
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ led.direction = Direction.OUTPUT
|
|||
analog_in = AnalogIn(board.A3)
|
||||
|
||||
def get_vsys(pin):
|
||||
return ((pin.value * 3) * 3.3) / 65536
|
||||
return ((pin.value * 3) * 3.3) / 65535
|
||||
|
||||
while True:
|
||||
led.value = True
|
||||
|
|
|
|||
Loading…
Reference in a new issue