Consistent case for CLOCK

This commit is contained in:
James Bowman 2019-02-24 13:29:25 -08:00
parent ac0e46dda7
commit 55f99f655e
2 changed files with 2 additions and 2 deletions

View File

@ -176,7 +176,7 @@ class EPROM:
return r return r
self.i2.stop() self.i2.stop()
class CLOCK: class Clock:
""" CLOCK is a HT1382 I2C/3-Wire Real Time Clock with a 32 kHz crystal """ """ CLOCK is a HT1382 I2C/3-Wire Real Time Clock with a 32 kHz crystal """
def __init__(self, i2, a = 0x68): def __init__(self, i2, a = 0x68):
self.i2 = i2 self.i2 = i2

View File

@ -6,7 +6,7 @@ from i2cdriver import I2CDriver, EDS
if __name__ == '__main__': if __name__ == '__main__':
i2 = I2CDriver(sys.argv[1]) i2 = I2CDriver(sys.argv[1])
d = EDS.CLOCK(i2) d = EDS.Clock(i2)
d.set() d.set()
while 1: while 1:
print(d.read()) print(d.read())