Skip to content

Commit

Permalink
"Reformatted per new black version"
Browse files Browse the repository at this point in the history
  • Loading branch information
tekktrik committed Mar 29, 2022
1 parent e87a657 commit 87548ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_boardtest/boardtest_voltage_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def run_test(pins: Sequence[str]) -> Tuple[str, List[str]]:
# Print out the voltage found on each pin
for pin in monitor_pins:
monitor = analogio.AnalogIn(getattr(board, pin))
voltage = (monitor.value * ANALOG_REF) / (2 ** ANALOGIN_BITS)
voltage = (monitor.value * ANALOG_REF) / (2**ANALOGIN_BITS)
print(pin + ": {:.2f}".format(voltage) + " V")
monitor.deinit()
print()
Expand Down

0 comments on commit 87548ff

Please sign in to comment.