Notifications
Clear all

Raspberry Pi pico reads serial data when using into if uart.readline() will accept data is not complete

2 Posts
1 Users
0 Likes
1,088 Views
(@maxli)
Member
Joined: 3 years ago
Posts: 36
Topic starter  

Raspberry Pi pico reads serial data when using into if uart.readline() will accept data is not complete

This topic was modified 3 years ago by Maxli

   
Quote
Topic Tags
(@maxli)
Member
Joined: 3 years ago
Posts: 36
Topic starter  

I know why, because uart.readline() function underlying logic is to determine the carriage return character, so when used in conjunction with the serial screen command, it is best to use uart.read() directly and then specify the number of characters.


   
ReplyQuote