I make my first steps with CircuitPy and try to parse some data over the USB.
The data is coming from a python script running on my PC.
**boot.py **
import usb_cdc
usb_cdc.enable(console=True, data=True)
after a power cycle I have two COM ports but if I try to connect to COM11 it looks like the COM port is frozen. I can't type or receive anything. If I open COM10, which is my REPL everything works as expected.
this is one of my 100000 attempts:
import time
import usb_cdc
uart = usb_cdc.serials[1]
#s = bytearray("hello\n\r".encode())
while True:
#uart.write(s)
incoming = uart.readline().decode("utf-8")
print (incoming)
time.sleep(1)
Can somebody pleas point me in the right direction?
Thank you!