Initial commit
This commit is contained in:
commit
126c6a93d8
8 changed files with 166 additions and 0 deletions
3
relay
Executable file
3
relay
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
[ $# -ne 1 ] || [ "$1" != "0" -a "$1" != "1" ] && { echo "Usage: relay 0|1"; exit 1; }
|
||||
python3 -c "import serial; s=serial.Serial('/dev/cu.usbserial-2110',115200,timeout=2); s.write(b'$1'); print(s.read(10).decode())"
|
||||
Loading…
Reference in a new issue