diff options
Diffstat (limited to 'reinit.py')
-rwxr-xr-x | reinit.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/reinit.py b/reinit.py new file mode 100755 index 0000000..76e5828 --- /dev/null +++ b/reinit.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python + +import os +import sys +import serial +import base64 +from time import sleep + +if len(sys.argv) < 2: + print "firt argument is device." + raise SystemExit + +ser = serial.Serial(sys.argv[1], 38400, timeout=0.5, rtscts=0) +count = 8*8 +for i in range(count): + ser.write('\0') + #sleep(0.1) + |