esp8266: how to use UART

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
Posts: 1
Joined: Sat Jan 17, 2015 1:47 pm

esp8266: how to use UART

Post by chinadsf » Sun May 24, 2015 11:33 am

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 ?

User avatar
Posts: 1364
Joined: Thu May 28, 2015 5:54 pm

Re: esp8266: how to use UART

Post by deshipu » Thu May 28, 2015 6:42 pm

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?

Post Reply