Accessing Serial on the T-Deck?


#1

The T-Deck has a 4-pin JST connector on the right-hand side of the back of the board, with connections RX, TX, VCC, and GND. Has anyone figured out how to use this with with-serial for serial input and output?


#2

I got it to work but I’m not sure if its exactly what you expect. I followed this guide, basically you have to add

#include <HardwareSerial.h>

HardwareSerial SerialPort(2); //you can name this something else

Then change the serialbegin function from

Serial1.begin((long)baud*100); 

to

SerialPort.begin((long)baud*100, SERIAL_8N1, RX, TX);

and then replace all instances of Serial1 with SerialPort.

I haven’t tested this extensively but I got some bits on the FTDI cable. I can make you a pull request later if you want


#3

Great! I’ll try it.