I tested by REPL:
"from pyb import UART"
"import uart"
but without success
I konw that REPL used the UART0, then how can i use UART1 and whether main.py can use UART0 ?
esp8266: how to use UART
Re: esp8266: how to use UART
The pyb.UART is still not implemented, but if you are fine with the default settings (115200 speed, etc.), then you can simply use prints and/or sys.stdin/sys.stdout.
Although I just tested sys.stdin.read(1) and that makes the REPL hang forever -- anybody has any idea why and how to actually get some input?
Although I just tested sys.stdin.read(1) and that makes the REPL hang forever -- anybody has any idea why and how to actually get some input?