From 66dcf910bd4744d8ced56cb9586aa937a1a2d4c5 Mon Sep 17 00:00:00 2001 From: vg Date: Tue, 7 Jul 2020 16:24:01 +0200 Subject: first commit --- reinit.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 reinit.py (limited to 'reinit.py') 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) + -- cgit v1.2.3