# Disable WiFi LED when using a battery

**URL:** <https://community.particle.io/t/disable-wifi-led-when-using-a-battery/62526>\
**Category:** Firmware\
**Tags:** photon\
**Created:** [May 4, 2022, 3:02pm UTC](https://community.particle.io/t/disable-wifi-led-when-using-a-battery/62526 "2022-05-04T15:02:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnspeth](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@johnspeth](https://community.particle.io/u/johnspeth)\
**Post date:** [May 4, 2022, 3:02pm UTC](https://community.particle.io/t/disable-wifi-led-when-using-a-battery/62526/1 "2022-05-04T15:02:40Z")

</div>

I have a Photon that features a multicolor LED for signaling various operational modes. I’d like to programmatically disable that LED from ever lighting up. Can anyone tell me how that can be done?

My application is a deeply embedded battery powered system. Nobody will ever see the LED so it just wastes battery power when it is lit. I’d like to disable lighting it during my normal run mode. I’d like to keep the LED behavior as it exists now during my debug mode. My run and debug modes will be switchable using a command over WiFi. Removing the LED will not satisfy my requirements.

Thanks - JJS

---

<div class="post-metadata">

**Author:** ![peekay123](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/peekay123/32/810_2.png) [@peekay123](https://community.particle.io/u/peekay123)\
**Post date:** [May 4, 2022, 3:13pm UTC](https://community.particle.io/t/disable-wifi-led-when-using-a-battery/62526/2 "2022-05-04T15:13:48Z")

</div>

@johnspeth, are mirroring the onboard RGB LED to your own LED? You may want to read the [RGB LED section of the docs](https://docs.particle.io/reference/device-os/firmware/#rgb).

---

<div class="post-metadata">

**Author:** ![johnspeth](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@johnspeth](https://community.particle.io/u/johnspeth)\
**Post date:** [May 4, 2022, 3:23pm UTC](https://community.particle.io/t/disable-wifi-led-when-using-a-battery/62526/3 "2022-05-04T15:23:50Z")

</div>

Thanks, Peekay. I was hoping the solution would be this straightforward. I have confirmed that:

1. I can programmatically disable the built-in LED signaling functions and turn off the LED by executing:

2. I can programmatically restore the built-in LED signaling functions by executing:

It works perfectly - JJS

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/6/4/64635adccc35238caa19e9b553ec3e98b163d026.png) [@system](https://community.particle.io/u/system)\
**Post date:** [June 4, 2022, 1:24am UTC](https://community.particle.io/t/disable-wifi-led-when-using-a-battery/62526/4 "2022-06-04T01:24:27Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
