Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help
#4
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.

f = open("/my/robot", "wb")
n = encode(s, x y)
f.write(n)
Reply


Messages In This Thread
Need help - by kamui123 - Dec-15-2020, 02:15 AM
RE: Need help - by bowlofred - Dec-15-2020, 02:25 AM
RE: Need help - by kamui123 - Dec-15-2020, 03:06 AM
RE: Need help - by bowlofred - Dec-15-2020, 03:59 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020