Skip to content

Using uart on pico #16419

Discussion options

You must be logged in to vote

You want to add:
timeout=: specifies the time to wait for the first character (in ms).
timeout_char=: specifies the time to wait between characters (in ms).
on the receiver side. Maybe 10ms…
Otherwise the UART doesn't wait for the rest of the line.
uart0 = UART(0, baudrate=9600, tx=Pin(0), rx=Pin(1), timeout=10, timeout_char=10)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by didyblunder
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants