# GPIO Button control Neopixels & timer switch off

**URL:** https://discourse.nodered.org/t/gpio-button-control-neopixels-timer-switch-off/33805
**Category:** General
**Created:** [5 October 2020 22:29 UTC](https://discourse.nodered.org/t/gpio-button-control-neopixels-timer-switch-off/33805 "2020-10-05T22:29:11Z")
**Posts on this page:** 5
**Page:** 2

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [6 October 2020 11:32 UTC](https://discourse.nodered.org/t/gpio-button-control-neopixels-timer-switch-off/33805/21 "2020-10-06T11:32:03Z")

</div>

> My current problem is when i press the button a 3rd time the light stay off because the led strip is still waiting 10seconds. How can i rectify?

I am still having a problem parsing what that means.  
And it is a **third** press. I am at a loss where the second press is in the scheme.

ARGH! Stupid me!  
_The second press was hiding in the first sentence._

Oh well.... I had a bit of fun thinking about how to do what wasn't wanted.

Sorry. (to both.)

I need to learn to read better.

---

<div class="post-metadata">

### Author: ![cscmario](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cscmario/32/65545_2.png) [@cscmario](https://discourse.nodered.org/u/cscmario)
#### Post date: [6 October 2020 11:47 UTC](https://discourse.nodered.org/t/gpio-button-control-neopixels-timer-switch-off/33805/22 "2020-10-06T11:47:55Z")

</div>

Thank you all for your help. That simple flow by @dceejay helped a lot and works perfectly\> now i understand a few more conditions.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [6 October 2020 11:55 UTC](https://discourse.nodered.org/t/gpio-button-control-neopixels-timer-switch-off/33805/23 "2020-10-06T11:55:14Z")

</div>

no worries... we're all learning all the time.

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [6 October 2020 20:11 UTC](https://discourse.nodered.org/t/gpio-button-control-neopixels-timer-switch-off/33805/24 "2020-10-06T20:11:56Z")

</div>

My flow was more complicated because it was doing something entirely different.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [20 October 2020 20:11 UTC](https://discourse.nodered.org/t/gpio-button-control-neopixels-timer-switch-off/33805/25 "2020-10-20T20:11:59Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/gpio-button-control-neopixels-timer-switch-off/33805.md?page=1)
