# Enable GPIO on boot?

**URL:** <https://wled.discourse.group/t/enable-gpio-on-boot/5350>\
**Category:** Questions\
**Created:** [May 10, 2022, 1:53pm UTC](https://wled.discourse.group/t/enable-gpio-on-boot/5350 "2022-05-10T13:53:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![quantar](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/quantar/32/1640_2.png) [@quantar](https://wled.discourse.group/u/quantar)\
**Post date:** [May 10, 2022, 1:53pm UTC](https://wled.discourse.group/t/enable-gpio-on-boot/5350/1 "2022-05-10T13:53:43Z")

</div>

Hi there,  
To enable the LED power with the booting of the ESP, I assume GPIO16 has to be enabled somehow.  
Is there a simple way to add this command within the platformio.ini? Or do I have to add sth. within the source code to make this work?  
Thanks  
quan

 ![Bild_2022-05-10_155242098](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/d/dc716b36be9954cbbc8929f2b3a32aa16686fd0b.png)

---

<div class="post-metadata">

**Author:** ![divsys](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@divsys](https://wled.discourse.group/u/divsys)\
**Post date:** [May 10, 2022, 2:37pm UTC](https://wled.discourse.group/t/enable-gpio-on-boot/5350/2 "2022-05-10T14:37:53Z")

</div>

What about assigning the relay output to GPIO16?  
Will that give you the control you need?

Checkout: [Control a Relay - WLED Project](https://kno.wled.ge/features/relay-control/) in the docs for more details.  
You may have to play with Normally On or Off settings.

---

<div class="post-metadata">

**Author:** ![blazoncek](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/blazoncek/32/1886_2.png) [@blazoncek](https://wled.discourse.group/u/blazoncek)\
**Post date:** [May 10, 2022, 4:01pm UTC](https://wled.discourse.group/t/enable-gpio-on-boot/5350/3 "2022-05-10T16:01:39Z")

</div>

Some GPIOs will output PWM or debug info at boot. Check the Espressif documentation.  
Other GPIOs will be able to output signal when firmware loads.

---

<div class="post-metadata">

**Author:** ![quantar](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/quantar/32/1640_2.png) [@quantar](https://wled.discourse.group/u/quantar)\
**Post date:** [May 11, 2022, 11:26am UTC](https://wled.discourse.group/t/enable-gpio-on-boot/5350/4 "2022-05-11T11:26:37Z")

</div>

Thanks, that simply did the trick 🙂
