Page 1 of 1

esp8266: how to use UART

Posted: Sun May 24, 2015 11:33 am
by chinadsf
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 can use UART0 ?

Re: esp8266: how to use UART

Posted: Thu May 28, 2015 6:42 pm
by deshipu
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 and that makes the REPL hang forever -- anybody has any idea why and how to actually get some input?