diff options
author | Eddy Pedroni <eddy@0xf7.com> | 2022-05-24 10:59:47 +0200 |
---|---|---|
committer | Eddy Pedroni <eddy@0xf7.com> | 2022-05-24 10:59:47 +0200 |
commit | ba53e148812b73c540752c5e7654e48829eacd06 (patch) | |
tree | ea3ac5f8305a87004aeecce151c2ed4b4d1b675b /doc/jds6600 | |
parent | e564772b92a1542e84679212528fb0129248e497 (diff) |
Restructured repo, updated documentation
Diffstat (limited to 'doc/jds6600')
-rw-r--r-- | doc/jds6600/JT-JDS6600-Communication-protocol.pdf | bin | 0 -> 227870 bytes | |||
-rw-r--r-- | doc/jds6600/all-off.bin | 1 | ||||
-rw-r--r-- | doc/jds6600/all-on.bin | 1 | ||||
-rw-r--r-- | doc/jds6600/control.py | 8 | ||||
-rwxr-xr-x | doc/jds6600/stty-config | 3 |
5 files changed, 13 insertions, 0 deletions
diff --git a/doc/jds6600/JT-JDS6600-Communication-protocol.pdf b/doc/jds6600/JT-JDS6600-Communication-protocol.pdf Binary files differnew file mode 100644 index 0000000..f999813 --- /dev/null +++ b/doc/jds6600/JT-JDS6600-Communication-protocol.pdf diff --git a/doc/jds6600/all-off.bin b/doc/jds6600/all-off.bin new file mode 100644 index 0000000..f04d91b --- /dev/null +++ b/doc/jds6600/all-off.bin @@ -0,0 +1 @@ +:w20=0,0.
diff --git a/doc/jds6600/all-on.bin b/doc/jds6600/all-on.bin new file mode 100644 index 0000000..55e9577 --- /dev/null +++ b/doc/jds6600/all-on.bin @@ -0,0 +1 @@ +:w20=1,1.
diff --git a/doc/jds6600/control.py b/doc/jds6600/control.py new file mode 100644 index 0000000..bf7b427 --- /dev/null +++ b/doc/jds6600/control.py @@ -0,0 +1,8 @@ +class OpCode: + ONOFF = "w20" + +def sendCommand(opcode, args): + with open("/dev/ttyUSB0", "w") as tty: + print(f":{opcode}={args}.", end="\r\n", file=tty) + +sendCommand(OpCode.ONOFF, "1,0") diff --git a/doc/jds6600/stty-config b/doc/jds6600/stty-config new file mode 100755 index 0000000..4217c48 --- /dev/null +++ b/doc/jds6600/stty-config @@ -0,0 +1,3 @@ +#!/usr/bin/zsh + +stty -F /dev/ttyUSB0 speed 115200 cs8 -cstopb -parenb -echo |