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

MicroPython • Re: How to Read Data from Nextion Display via UART with Pico

$
0
0
while True:
if uart.any():
received_data = uart.readline().decode().strip()
print("Received:", received_data)
I would start with checking if anything at all is coming back, something like -

Code:

while True:    if uart.any():        received_data = uart.read(1)# Don't wait for end of line        print("Received:", received_data)

Statistics: Posted by hippy — Thu Feb 08, 2024 11:51 am



Viewing all articles
Browse latest Browse all 5639

Trending Articles