Python Forum
Byte array is sorted when sending via USB
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Byte array is sorted when sending via USB
#2
You are using a list which is mutable. Try to send this: buffer = b'\x00\x0A\x2F\x02\x03\x01'
You should see struct module.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
RE: Byte array is sorted when sending via USB - by wavic - Aug-16-2019, 10:11 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  extract only text strip byte array Pir8Radio 7 2,924 Nov-29-2022, 10:24 PM
Last Post: Pir8Radio
  Failing to print sorted files tester_V 4 1,245 Nov-12-2022, 06:49 PM
Last Post: tester_V
  sending byte in code? korenron 2 1,116 Oct-30-2022, 01:14 PM
Last Post: korenron
  set and sorted, not working how expected! wtr 2 1,281 Jan-07-2022, 04:53 PM
Last Post: bowlofred
  How to make elements return sorted? notsoexperienced 4 3,218 Sep-24-2020, 09:00 AM
Last Post: perfringo
  'utf-8' codec can't decode byte 0xe2 in position 122031: invalid continuation byte tienttt 12 11,518 Sep-18-2020, 10:10 PM
Last Post: tienttt
  convert array of numbers to byte array adetheheat 3 2,795 Aug-13-2020, 05:09 PM
Last Post: bowlofred
  Why is my original list also sorted? Pedroski55 1 1,610 Jul-15-2020, 09:25 PM
Last Post: Yoriz
  Outputting Sorted Text files Help charlieroberrts 1 1,723 Jul-05-2020, 08:37 PM
Last Post: menator01
  Convert even byte array to odd medatib531 1 2,203 Mar-17-2020, 02:48 AM
Last Post: scidam

Forum Jump:

User Panel Messages

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