Reading uart0 using os.dupterm(None, 1) - issues when going back to REPL when RX pin high #10626
-
I want to read an uart 2k byte signal to esp8266 D1 mini. The only available is uart (0, 9600) but during development I have to use Thonny that using TX/RX on uart(0, 115200) for REPL. Using Thonny 3.3.13 I thought REPL was connected internal to RX /TX pins and not depending on RX pin status - but it looks that RX pin has to be free when going from REPL back again. Is there a work around - not have to manually connect / disconnect? Br Stefan |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The inactive state of a UART line is high. Using os.dupterm() you can indeed detach and attach UART from REPL. But in any case you
There is a PR #7784 for MicroPython which provides support for a ESP8266. |
Beta Was this translation helpful? Give feedback.
The inactive state of a UART line is high. Using os.dupterm() you can indeed detach and attach UART from REPL. But in any case you
There is a PR #7784 for MicroPython which provides support for a ESP8266.
But using that requires, that you build your own firmware. And this PR was not updated a while.