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

Automation, sensing and robotics • Re: Rs232 command change between 2 gears project

$
0
0
In the simple uart program, the print statement uses 'format string', but you miss the f in front of the string...
instead of print("- {c:02x} {c}")
use print( f"- {c:02x} {c}") # note the f in front of the quoted string

Statistics: Posted by ghp — Sun Jan 05, 2025 5:24 pm



Viewing all articles
Browse latest Browse all 8374

Trending Articles