Dec-26-2020, 03:22 AM
(Dec-25-2020, 10:01 PM)ndc85430 Wrote: Sodata
is a bytes object? You need to convert it to an int then. Again, theint
function accepts bytes as the documentation says.
Data is sent from PC (max/msp) via Serial. Either as an integer or ascii (with same results)
I try:
integer=int.from_bytes(data,¨little¨)and
integer=int.from_bytes(data, "big")either way a get
255 or 254