ESP8266 Serial

From ElectroDragon Wiki
Revision as of 20:25, 18 May 2021 by Chao (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 Serial.swap();
 // Hardware serial is now on RX:GPIO13 TX:GPIO15
 // use SoftwareSerial on regular RX(3)/TX(1) for logging
 logger = new SoftwareSerial(3, 1);

UART0

U0_TXD = IO1
U0_RXD = IO3
can be remapped to GPIO15 (TX) and GPIO13 (RX) 

UART1

U1_TXD = IO2