# Led timer reverse

**URL:** <https://forum.xod.io/t/led-timer-reverse/5995>\
**Category:** Uncategorized\
**Created:** [March 27, 2022, 9:22pm UTC](https://forum.xod.io/t/led-timer-reverse/5995 "2022-03-27T21:22:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lexluther35](https://avatars.discourse-cdn.com/v4/letter/l/e5b9ba/32.png) [@lexluther35](https://forum.xod.io/u/lexluther35)\
**Post date:** [March 27, 2022, 9:22pm UTC](https://forum.xod.io/t/led-timer-reverse/5995/1 "2022-03-27T21:22:58Z")

</div>

Hi!

How to reverse led operation?

On boot it is ON, and if i press START button, it ghoes OFF for set time.

I would like to turn it ON for 3 seconds,  
then OFF, and wait for START button press.

AND how to disable START button until the timer expires?

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/5/5c2488fe4de0a492b75dd19e834dda4300a4bc84.jpeg)

Thank you!

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [March 28, 2022, 3:33pm UTC](https://forum.xod.io/t/led-timer-reverse/5995/2 "2022-03-28T15:33:56Z")

</div>

If LED is on at boot & turns off when you hit START button, it is probably wired incorrectly. My guess would be you have it wired between V+ and pin rather than between pin and Ground. It should be fixed in hardware, but technically, if you are only turning it on/off and not trying to dim the LED, you could put a ‘not’ node between delay-ACT and LED-LUM to fix it in software.

Probably the easiest way to disable the button while delay is active is to use a ‘gate’ node between START-PRS and delay-SET. You only want it active when delay-ACT is false, so you will want to run delay-ACT to a ‘not’ node, then to gate-EN, however, you will need a ‘delay’ node on one side of the ‘not’ node (it doesn’t matter which side) because you are creating a loop (by running a wire “up” the patch).

---

<div class="post-metadata">

**Author:** ![lexluther35](https://avatars.discourse-cdn.com/v4/letter/l/e5b9ba/32.png) [@lexluther35](https://forum.xod.io/u/lexluther35)\
**Post date:** [March 28, 2022, 6:24pm UTC](https://forum.xod.io/t/led-timer-reverse/5995/3 "2022-03-28T18:24:23Z")

</div>

Thank you!

it works by routing NOT node and DEFER node back to EN on gate.

---

<div class="post-metadata">

**Author:** ![peterli](https://avatars.discourse-cdn.com/v4/letter/p/7feea3/32.png) [@peterli](https://forum.xod.io/u/peterli)\
**Post date:** [March 31, 2022, 3:29pm UTC](https://forum.xod.io/t/led-timer-reverse/5995/4 "2022-03-31T15:29:30Z")

</div>

Hello, I’m glad your problem has been solved. I used the STONE TFTmonitor to do the same operation as you before. I began to encounter some problems, but my friend helped me solve my problem.

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [March 31, 2022, 3:33pm UTC](https://forum.xod.io/t/led-timer-reverse/5995/5 "2022-03-31T15:33:26Z")

</div>

peterli, quit spamming us with your products, or you will get blocked.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [April 30, 2022, 3:34pm UTC](https://forum.xod.io/t/led-timer-reverse/5995/6 "2022-04-30T15:34:23Z")

</div>

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