When I connect GP4 (UART1 TX) on one pi pico to GP5 (UART1 RX) on the second pipico and vice versa, I keep getting "NONE" as my received data.
Pico #1:
from machine import Pin, UART
uart = UART(1,115200)
while True:
uart.write ("Hello")
Pico #2:
from machine import UART,Pin
uart = UART(1, 115200)
while True:
if uart.any():
rcvChar = uart.read()
print(rcvChar.decode("ascii"),end="")
This prints out nothing. If I continuously print uart.read() I get a slew of "NONE" values.
I also tried doing a loopback where I connected the TX and RX pins on one of the picos (GP0 and GP1), and sending/reading information that way using:
from machine import UART,Pin
uart = UART(0, 115200)
uart.write('hello')
c=uart.read(5)
print(c)
And still got "NONE" Am I missing something obvious here? Thanks in advance