aboutsummaryrefslogtreecommitdiffstats
path: root/reinit.py
blob: 76e582856a92b3e1ad262c93b7366616782b2905 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)