Started following some tutorial on att85 usi. Downloaded example code from make avr book.

This commit is contained in:
Dan
2022-09-20 01:08:01 -04:00
parent d0cbc0000e
commit 361a828c46
295 changed files with 68746 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import serial
import calibrateTime
import time
s = serial.Serial("/dev/ttyUSB0", 9600, timeout=5)
for hour in range(11,25):
print "Moving to {}.".format(hour)
calibrateTime.setTime(s, hour-2, 59, 59)
time.sleep(2)
for i in range(0, 60, 5):
calibrateTime.setTime(s, hour-1, i, 00)
time.sleep(0.5)
calibrateTime.setTime(s, hour, 0, 0)
discardThisInput = raw_input("\tpress return to continue\n")
s.close()