Slow down remote controll polling

This commit is contained in:
James Bowman 2020-01-04 06:57:21 -08:00
parent 57dc5a4f7e
commit b62ad81b27
1 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@ from i2cdriver import I2CDriver, EDS
if __name__ == '__main__': if __name__ == '__main__':
i2 = I2CDriver(sys.argv[1], True) i2 = I2CDriver(sys.argv[1], True)
i2.setspeed(400)
d = EDS.Remote(i2) d = EDS.Remote(i2)
@ -17,3 +18,4 @@ if __name__ == '__main__':
if r is not None: if r is not None:
(code, timestamp) = r (code, timestamp) = r
print("Raw code: %02x %02x %02x %02x (time %.2f)" % (code[0], code[1], code[2], code[3], timestamp)) print("Raw code: %02x %02x %02x %02x (time %.2f)" % (code[0], code[1], code[2], code[3], timestamp))
time.sleep(.25)