diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2016-05-23 18:17:06 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-05-23 18:17:06 +0200 |
| commit | 79a2672fc8ae282e75a037e6a63ddb24726ce407 (patch) | |
| tree | 6037213c29256949838b151eb7cde00df2c1080e | |
| download | serial-led-master.tar.gz serial-led-master.zip | |
| -rwxr-xr-x | cp2102.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cp2102.py b/cp2102.py new file mode 100755 index 0000000..89f94e1 --- /dev/null +++ b/cp2102.py @@ -0,0 +1,12 @@ +#!/usr/bin/python3 + +import time +import serial + +s = serial.Serial("/dev/ttyUSB0", 1500000, timeout=None, rtscts=None, dsrdtr=None) + +while True: + s.setDTR(True) + time.sleep(1) + s.setDTR(False) + time.sleep(1) |
