Commit b45434e3 authored by Ján Labuda's avatar Ján Labuda
Browse files

feat: script for communication

parent 78977b04
......@@ -58,3 +58,6 @@
# End of
# scripts
import serial
import as ports
def sendAF(port):
ser = serial.Serial(port, 115200)
num = 0xAF
packet = bytearray([num])
def readBlock(port, n):
ser = serial.Serial(port, 115200)
for _ in range(n):
num =
if __name__ == '__main__':
print(list(map(lambda x: x.device, ports.comports())))
readBlock('COM3', 5)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment