# How to change DMX\_OUTPUT to TX port?

**URL:** <https://wled.discourse.group/t/how-to-change-dmx-output-to-tx-port/4003>\
**Category:** Uncategorized\
**Created:** [November 12, 2021, 3:29pm UTC](https://wled.discourse.group/t/how-to-change-dmx-output-to-tx-port/4003 "2021-11-12T15:29:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdunkler](https://avatars.discourse-cdn.com/v4/letter/p/ed655f/32.png) [@pdunkler](https://wled.discourse.group/u/pdunkler)\
**Post date:** [November 12, 2021, 3:29pm UTC](https://wled.discourse.group/t/how-to-change-dmx-output-to-tx-port/4003/1 "2021-11-12T15:29:58Z")

</div>

Hi Guys,

i’m currently playing with WLED and its wonderful so far 🙂  
I would really like to try out the DMX output.

What i want to achieve is DMX Output via channel TX (GPIO1).  
I was following the instructions on the wiki page which says i can change the dmx pin in ESPDMX.cpp. I changed the pin to 1 there. That then leads to compilation problems.

I then found out that the dmx channel is hard coded in some settings and changed it to pin1 there to allow setting correct values via webinterface.

In the end i don’t get any output on pin 1.  
Shouldn’t the Serial1 in ESPDMX.cpp be changed to Serial. when i want to use TX pin as dmx out? And wouldn’t that interrupt with WLEDS usage of Serial in other parts of the software?

Maybe someone did already have the same problem or can lead me into the right direction?

Best,  
Paul

---

<div class="post-metadata">

**Author:** ![pdunkler](https://avatars.discourse-cdn.com/v4/letter/p/ed655f/32.png) [@pdunkler](https://wled.discourse.group/u/pdunkler)\
**Post date:** [November 12, 2021, 3:31pm UTC](https://wled.discourse.group/t/how-to-change-dmx-output-to-tx-port/4003/2 "2021-11-12T15:31:34Z")

</div>

Just wanted to share my current diff to the WLED main branch where i tried out some things to get it compiled correctly. But doesn’t seem to work ☹

> **[diff --git a/platformio.ini b/platformio.iniindex 0a64a94..8b5b148 100644---...](https://pastebin.com/1eFNst7h)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
