# Serial port pins for SparkFun ESP32 DMX to LED Shield and Adafruit ESP32-S3 TFT Feather

**URL:** <https://community.sparkfun.com/t/serial-port-pins-for-sparkfun-esp32-dmx-to-led-shield-and-adafruit-esp32-s3-tft-feather/63289>\
**Category:** ESP32\
**Created:** [February 10, 2025, 5:50am UTC](https://community.sparkfun.com/t/serial-port-pins-for-sparkfun-esp32-dmx-to-led-shield-and-adafruit-esp32-s3-tft-feather/63289 "2025-02-10T05:50:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmeader](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/gmeader/32/8510_2.png) [@gmeader](https://community.sparkfun.com/u/gmeader)\
**Post date:** [February 10, 2025, 5:50am UTC](https://community.sparkfun.com/t/serial-port-pins-for-sparkfun-esp32-dmx-to-led-shield-and-adafruit-esp32-s3-tft-feather/63289/1 "2025-02-10T05:50:54Z")

</div>

I’m trying to get **Example1-DMXOutput.ino** from the Sparkfun DMX library to work with a Adafruit ESP32-S3 TFT Feather on the SparkFun ESP32 DMX to LED Shield.  
[https://github.com/sparkfun/SparkFunDMX/tree/master/examples/Example1-DMXOutput](https://github.com/sparkfun/SparkFunDMX/tree/master/examples/Example1-DMXOutput)

I think the enPin = 39 and the UART TX pin is 5 and RX is pin 6 on CPU on the Feather.  
Schematic for AdaFruit Feather [https://cdn-learn.adafruit.com/assets/assets/000/114/104/original/adafruit\_products\_FS3TFT\_sch.png?1660251030](https://cdn-learn.adafruit.com/assets/assets/000/114/104/original/adafruit_products_FS3TFT_sch.png?1660251030)  
It appears that:  
pin 39 (TXD0) on the ESP32-S3 is connected to JP1-pin 1 (JP1-16 on shield schematic)  
pin 5 (TX) on the ESP32-S3 is connected to JP1-pin 2 (JP1-14 on shield schematic)  
pin 6 (TX) on the ESP32-S3 is connected to JP1-pin 3 (JP1-15 on shield schematic)  
[https://cdn.sparkfun.com/assets/c/1/c/c/d/SparkFun\_ESP32\_Thing\_Plus\_DMX\_to\_LED\_Shield.pdf](https://cdn.sparkfun.com/assets/c/1/c/c/d/SparkFun_ESP32_Thing_Plus_DMX_to_LED_Shield.pdf)

So I don’t know how to tell the Sparkfun DMX library to use these pins. The example code just has `HardwareSerial dmxSerial(2);`  
i did change` uint8_t enPin = 21;` to `uint8_t enPin = 39;` in the example code, but it still does not seem to be outputting DMX.

---

<div class="post-metadata">

**Author:** ![ahsrabrifat](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@ahsrabrifat](https://community.sparkfun.com/u/ahsrabrifat)\
**Post date:** [February 10, 2025, 9:46am UTC](https://community.sparkfun.com/t/serial-port-pins-for-sparkfun-esp32-dmx-to-led-shield-and-adafruit-esp32-s3-tft-feather/63289/2 "2025-02-10T09:46:56Z")

</div>

In `setup()`, explicitly assign the correct TX and RX pins before calling `begin()`:

```auto
void setup() {
    Serial.begin(115200);
    pinMode(enPin, OUTPUT);
    digitalWrite(enPin, HIGH); // Enable DMX output

    // Initialize DMX UART2 with custom TX and RX pins
    dmxSerial.begin(250000, SERIAL_8N2, 6, 5); // RX=6, TX=5

    DMX::Initialize(&dmxSerial, enPin);
}

```

---

<div class="post-metadata">

**Author:** ![gmeader](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/gmeader/32/8510_2.png) [@gmeader](https://community.sparkfun.com/u/gmeader)\
**Post date:** [July 29, 2026, 2:04am UTC](https://community.sparkfun.com/t/serial-port-pins-for-sparkfun-esp32-dmx-to-led-shield-and-adafruit-esp32-s3-tft-feather/63289/3 "2026-07-29T02:04:43Z")

</div>

I finally got it working.  
The correct settings that actually work are:

```auto
#define DMX_EN_PIN 21 // Transmit enable pin (GPIO 21)

SparkFunDMX dmx;
HardwareSerial dmxSerial(1);

// 4. Initialize SparkFun DMX Shield (250kbps output mode)
dmxSerial.begin(250000, SERIAL_8N2,RX,TX);

```

go here for full project details:

> **[GitHub - gmeader/ESP32-S3-TFT-Feather-DMX-Control: Use a Adafruit ESP32-S3 TFT Feather with Sparkfun...](https://github.com/gmeader/ESP32-S3-TFT-Feather-DMX-Control)**
>
> Use a Adafruit ESP32-S3 TFT Feather with Sparkfun ESP32 Thing Plus DMX to LED Shield and Adafruit I2C Stemma QT Rotary Encoder Breakout with Encoder
