added sleep(0.1)

pull/78/head
alanbjohnston 5 years ago committed by GitHub
parent 71234ff24f
commit 42f9b0b82f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,12 +1,15 @@
"""Sample code and test for adafruit_in219""" """Sample code and test for adafruit_in219"""
# Reads all voltage and current sensors for two I2C buses # Reads all voltage and current sensors for two I2C buses
import time
import sys import sys
time.sleep(0.1)
#import board #import board
import busio import busio
time.sleep(0.1)
from adafruit_extended_bus import ExtendedI2C as I2C from adafruit_extended_bus import ExtendedI2C as I2C
time.sleep(0.1)
from adafruit_ina219 import INA219 from adafruit_ina219 import INA219
time.sleep(0.1)
if __name__ == "__main__": if __name__ == "__main__":
# print 'Length: ', len(sys.argv) # print 'Length: ', len(sys.argv)

Loading…
Cancel
Save

Powered by TurnKey Linux.