TTGO T-Display Serial Pins

marinmersenne
Posts: 1
Joined: Tue Sep 29, 2020 10:13 am

TTGO T-Display Serial Pins

Postby marinmersenne » Tue Sep 29, 2020 11:00 am

--Complete ESP32 newbie here--
I've been trying to send serial data to from an Arduino Nano to an ESP32 TTGO T-Display, but I can't find the RX pin. Does anyone know what pins are RX/TX on this board?
Thanks.

jkingdon
Posts: 20
Joined: Wed Jun 15, 2016 2:51 pm

Re: TTGO T-Display Serial Pins

Postby jkingdon » Tue Sep 29, 2020 3:28 pm

They are remappable so you can choose which pins you want to use when you initialise the serial port. There are some defaults defined:

Code: Select all

#ifndef RX1
#define RX1 9
#endif

#ifndef TX1
#define TX1 10
#endif

#ifndef RX2
#define RX2 16
#endif

#ifndef TX2
#define TX2 17
#endif
See void HardwareSerial::begin(unsigned long baud, uint32_t config, int8_t rxPin, int8_t txPin, bool invert, unsigned long timeout_ms)
to override the defaults.

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 91 guests