We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d849d9d commit dada4bcCopy full SHA for dada4bc
examples/ina228_simpletest.py
@@ -21,7 +21,7 @@
21
print(f"Current: {ina228.current*1000:.2f} mA")
22
print(f"Bus Voltage: {ina228.bus_voltage:.2f} V")
23
print(f"Shunt Voltage: {ina228.shunt_voltage*1000:.2f} mV")
24
- print(f"Power: {ina228.power:.2f} mW")
+ print(f"Power: {ina228.power*1000:.2f} mW")
25
print(f"Energy: {ina228.energy:.2f} J")
26
print(f"Temperature: {ina228.die_temperature:.2f} °C")
27
time.sleep(1)
0 commit comments