Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1264

Python • Re: What's wrong with the code?

$
0
0
First you need to send a byte string
result = ser.write( b"\xff\x01\x86\x00\x00\x00\x00\x00\x79")

1 - Put a b before the string
2- Hex byte needs \x not just x

Statistics: Posted by danjperron — Thu Jan 11, 2024 2:32 pm



Viewing all articles
Browse latest Browse all 1264

Trending Articles