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.
2 parents 1fb64c1 + dada4bc commit a7cf909Copy full SHA for a7cf909
examples/ina228_simpletest.py
@@ -18,10 +18,10 @@
18
19
while True:
20
print("\nCurrent Measurements:")
21
- print(f"Current: {ina228.current:.2f} mA")
+ 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