# Turn off the flashing LED?

**URL:** https://community.zymbit.com/t/turn-off-the-flashing-led/801
**Category:** ZYMKEY4
**Created:** [June 22, 2020, 7:38pm UTC](https://community.zymbit.com/t/turn-off-the-flashing-led/801 "2020-06-22T19:38:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mlts22](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@mlts22](https://community.zymbit.com/u/mlts22)
#### Post date: [June 22, 2020, 7:38pm UTC](https://community.zymbit.com/t/turn-off-the-flashing-led/801/1 "2020-06-22T19:38:54Z")

</div>

I can’t seem to find this via a search, but is there a way to turn the flashing LED off when the Zymkey is idle?

---

<div class="post-metadata">

### Author: ![Bob\_of\_Zymbit](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@Bob\_of\_Zymbit](https://community.zymbit.com/u/Bob_of_Zymbit)
#### Post date: [June 23, 2020, 1:22am UTC](https://community.zymbit.com/t/turn-off-the-flashing-led/801/2 "2020-06-23T01:22:57Z")

</div>

You can turn the LED on or off, or make it flash in a pattern via the API. The documentation can be found here:

[https://community.zymbit.com/t/api-documentation/189](https://community.zymbit.com/t/api-documentation/189)

Here is a snippet of code to show how to change the LED in python:

import zymkey  
import time

print(“Turning LED ON for 5 seconds…”)  
zymkey.client.led\_on()  
time.sleep(5)

print(“Turning LED OFF for 5 seconds…”)  
zymkey.client.led\_off()  
time.sleep(5)

print(“Setting to flash once for 100 msecs every 3 secs…”)  
zymkey.client.led\_flash(100,3000,0)

---

<div class="post-metadata">

### Author: ![mlts22](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@mlts22](https://community.zymbit.com/u/mlts22)
#### Post date: [June 23, 2020, 5:39am UTC](https://community.zymbit.com/t/turn-off-the-flashing-led/801/3 "2020-06-23T05:39:24Z")

</div>

Thank you very much. Greatly appreciated.
