# How to setup the GPIO output node to "OK" status

**URL:** <https://discourse.nodered.org/t/how-to-setup-the-gpio-output-node-to-ok-status/70319>\
**Category:** General\
**Created:** [9 November 2022 12:13 UTC](https://discourse.nodered.org/t/how-to-setup-the-gpio-output-node-to-ok-status/70319 "2022-11-09T12:13:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aquapark\_lodz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aquapark_lodz/32/69828_2.png) [@aquapark\_lodz](https://discourse.nodered.org/u/aquapark_lodz)\
**Post date:** [9 November 2022 12:13 UTC](https://discourse.nodered.org/t/how-to-setup-the-gpio-output-node-to-ok-status/70319/1 "2022-11-09T12:13:41Z")

</div>

I have question about the behavior of GPIO node in node-red.  
For now I have simply setup with the PWM light method. I use the following nodes:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/1/111399d46e68112e56dd4c8fed054b3f2d4c28df.png)  
and the code:

```auto
[{"id":"827e38722d9198a7","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"bd03935616a83d02","type":"inject","z":"827e38722d9198a7","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"100","payloadType":"num","x":450,"y":420,"wires":[["1cb445f0fe5177d9"]]},{"id":"262adbc2ec8db810","type":"inject","z":"827e38722d9198a7","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":450,"y":520,"wires":[["e0b3c67d197be6a9"]]},{"id":"1cb445f0fe5177d9","type":"easing","z":"827e38722d9198a7","name":"","easingType":"bounceIn","outputType":"overTime","duration":"2000","interval":50,"numberOfValues":10,"x":650,"y":400,"wires":[["0c7a2c86d9e65d59"]]},{"id":"0c7a2c86d9e65d59","type":"rpi-gpio out","z":"827e38722d9198a7","name":"RED Light PWM - GPIO 12","pin":"12","set":"","level":"0","freq":"","out":"pwm","bcm":true,"x":920,"y":440,"wires":[]},{"id":"e0b3c67d197be6a9","type":"easing","z":"827e38722d9198a7","name":"","easingType":"bounceIn","outputType":"overTime","duration":"2000","interval":50,"numberOfValues":10,"x":650,"y":480,"wires":[["0c7a2c86d9e65d59"]]}]

```

If I push the Deploy button the PWM GPIO node get "OK" status and the PWM with "easing" node is working - the smooth light up but when I hit the inject button with zero/0 the PWM doesn't work. The same situation when I want to switch on the red light with PWM method again. It starts with 100 number so there is no smooth effect.  
How to inject the "OK" status back to PWM GPIO node? or maybe is something wrong with the "easing" node?

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [9 November 2022 13:14 UTC](https://discourse.nodered.org/t/how-to-setup-the-gpio-output-node-to-ok-status/70319/2 "2022-11-09T13:14:22Z")

</div>

Try it with both injects connected to the same easing node.

 ![Untitled 1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/a/0ab78d465eef544cae922b9fba1416dee0e0bdd9.jpeg)

---

<div class="post-metadata">

**Author:** ![aquapark\_lodz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aquapark_lodz/32/69828_2.png) [@aquapark\_lodz](https://discourse.nodered.org/u/aquapark_lodz)\
**Post date:** [9 November 2022 14:20 UTC](https://discourse.nodered.org/t/how-to-setup-the-gpio-output-node-to-ok-status/70319/3 "2022-11-09T14:20:17Z")

</div>

Thanks, it is working great, now I will start this setup with some triggers node with delays and sequences

---

<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:** [23 November 2022 14:20 UTC](https://discourse.nodered.org/t/how-to-setup-the-gpio-output-node-to-ok-status/70319/4 "2022-11-23T14:20:55Z")

</div>

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