# Is there a node that acts opposite of the gate node

**URL:** <https://forum.xod.io/t/is-there-a-node-that-acts-opposite-of-the-gate-node/3029>\
**Category:** Uncategorized\
**Created:** [December 6, 2019, 3:03pm UTC](https://forum.xod.io/t/is-there-a-node-that-acts-opposite-of-the-gate-node/3029 "2019-12-06T15:03:50Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [December 6, 2019, 4:08pm UTC](https://forum.xod.io/t/is-there-a-node-that-acts-opposite-of-the-gate-node/3029/8 "2019-12-06T16:08:08Z")

</div>

This sounds very close to what I did here: [Led options help](https://forum.xod.io/t/led-options-help/2976/10)

Quick button press turns on/off. 2 second press puts it in program mode to make it brighter/dimmer, then goes back to on/off mode. I used debounce node to determine when button has been pressed for 2 seconds.

---

_[View the full topic](https://forum.xod.io/t/is-there-a-node-that-acts-opposite-of-the-gate-node/3029)._
