Update readcurrent.py

pull/1/head
alanbjohnston 7 years ago committed by GitHub
parent 125c59a0d4
commit b0864b4774
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,7 +6,7 @@ MAX_EXPECTED_AMPS45 = 0.6
try:
from ina219 import INA219
from ina219 import DeviceRangeError
INA219DISABLE=0
INA219DISABLE=1
except:
print "1 INA219 libraries not found or hardware INA219 not found at address 0x4a, defaulting to non-INA219 output"
INA219DISABLE=1
@ -26,8 +26,6 @@ if INA219DISABLE !=1:
print ina40v, ina40i, ina40p
print ina40v, ina40i, ina40p
if INA219DISABLE !=1:
ina4A = INA219(SHUNT_OHMS, MAX_EXPECTED_AMPS, 0x4a)
ina4A.wake();

Loading…
Cancel
Save

Powered by TurnKey Linux.