Dec-15-2020, 03:59 AM
You still didn't say where the byte needs to be delivered. I'm assuming you have a device file that you can open() to deliver the data.
If you open a file in binary mode, you can write the byte directly.
If you open a file in binary mode, you can write the byte directly.
f = open("/my/robot", "wb") n = encode(s, x y) f.write(n)