i2cdriver/python/samples/EDS-DIG2.py

14 lines
223 B
Python
Raw Normal View History

2019-02-21 15:34:28 +00:00
import sys
import serial
import time
from i2cdriver import I2CDriver, EDS
if __name__ == '__main__':
i2 = I2CDriver(sys.argv[1])
d = EDS.Dig2(i2)
for i in range(100):
d.dec(i)
time.sleep(.05)