Code: Select all
void Setup() {
Serial.begin(115200,SERIAL_8N1,SERIAL_TX_ONLY);
pinMode(2, OUTPUT);
pinMode(0, OUTPUT);
pinMode(3, INPUT_PULLUP);
...
https://www.forward.com.au/pfod/ESP8266 ... UTPUTS.jpg
Code: Select all
void Setup() {
Serial.begin(115200,SERIAL_8N1,SERIAL_TX_ONLY);
pinMode(2, OUTPUT);
pinMode(0, OUTPUT);
pinMode(3, INPUT_PULLUP);
...
The documentation doesn't talk about the use of RX pin (gpio 3, esp01 module) as ordinary input pin and anything about disable the input serial comunication with something like this statement:kevinkk525 wrote: You might want to have a look at the documentation: https://docs.micropython.org/en/latest/ ... /pins.html
What board are you trying to use?
Code: Select all
Serial.begin(115200, SERIAL_8N1, SERIAL_TX_ONLY);
Code: Select all
import uos, machine
TX_PIN = 1
uos.dupterm(none, 1)
uos.dupterm(machine.UART(0, 115200, pins=(TX_PIN, None)), 1)
Code: Select all
import machine
RX_PIN = 3
pin = machine.Pin(RX_PIN , machine.Pin.IN, machine.Pin.PULL_UP)