# How Can I Make Logic 1 and Logic 0 graphical with Node red and RPi 3

**URL:** <https://discourse.nodered.org/t/how-can-i-make-logic-1-and-logic-0-graphical-with-node-red-and-rpi-3/1697>\
**Category:** Dashboard\
**Created:** [19 July 2018 14:40 UTC](https://discourse.nodered.org/t/how-can-i-make-logic-1-and-logic-0-graphical-with-node-red-and-rpi-3/1697 "2018-07-19T14:40:49Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![wtrk](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@wtrk](https://discourse.nodered.org/u/wtrk)\
**Post date:** [9 August 2018 09:21 UTC](https://discourse.nodered.org/t/how-can-i-make-logic-1-and-logic-0-graphical-with-node-red-and-rpi-3/1697/41 "2018-08-09T09:21:42Z")

</div>

Dear @cflurin and @Andrei also other frineds,  
I have one more question . I done my project almost everything is ok. But when I look page **donut** or bar chart looking big size.

İs it possible to change warning icon like buton, which is enadble green disable red.

Thanks for your advance ..

 ![Untitled](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/a/a4e9d6d8e560c38c542bf0ff05d91cb7e1edd7c0.png)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [9 August 2018 09:38 UTC](https://discourse.nodered.org/t/how-can-i-make-logic-1-and-logic-0-graphical-with-node-red-and-rpi-3/1697/42 "2018-08-09T09:38:20Z")

</div>

did you try a search of the forum? maybe something like `change ui color`

---

<div class="post-metadata">

**Author:** ![wtrk](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@wtrk](https://discourse.nodered.org/u/wtrk)\
**Post date:** [9 August 2018 09:54 UTC](https://discourse.nodered.org/t/how-can-i-make-logic-1-and-logic-0-graphical-with-node-red-and-rpi-3/1697/43 "2018-08-09T09:54:39Z")

</div>

> [@zenofmud](#):
>
> did you try a search of the forum? maybe something like `change ui color`

It's not interested about ui color.

I want to use button for donut, but this button should change value changed. Value 1 is active, value 0 is inactive.

---

<div class="post-metadata">

**Author:** ![wtrk](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@wtrk](https://discourse.nodered.org/u/wtrk)\
**Post date:** [9 August 2018 10:14 UTC](https://discourse.nodered.org/t/how-can-i-make-logic-1-and-logic-0-graphical-with-node-red-and-rpi-3/1697/44 "2018-08-09T10:14:48Z")

</div>

![Untitled](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/2/2d865cc8b246f8036515830d3cbfc639e95db476.png)

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [9 August 2018 10:27 UTC](https://discourse.nodered.org/t/how-can-i-make-logic-1-and-logic-0-graphical-with-node-red-and-rpi-3/1697/45 "2018-08-09T10:27:40Z")

</div>

May be you are looking after this:  
[How to adjust button colors according to "some device" state](https://discourse.nodered.org/t/a-little-bit-of-a-flow-that-others-may-like/372/18)

---

<div class="post-metadata">

**Author:** ![wtrk](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@wtrk](https://discourse.nodered.org/u/wtrk)\
**Post date:** [9 August 2018 10:59 UTC](https://discourse.nodered.org/t/how-can-i-make-logic-1-and-logic-0-graphical-with-node-red-and-rpi-3/1697/46 "2018-08-09T10:59:30Z")

</div>

> [@hotNipi](#):
>
> May be you are looking after this:  
> [How to adjust button colors according to "some device" state](https://discourse.nodered.org/t/a-little-bit-of-a-flow-that-others-may-like/372/18)

Dear @hotNipi I want to do this without button click. I want to connect a cable to GPIO port it should be active ( green ), when I disconnect passive ( red )

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [9 August 2018 11:17 UTC](https://discourse.nodered.org/t/how-can-i-make-logic-1-and-logic-0-graphical-with-node-red-and-rpi-3/1697/47 "2018-08-09T11:17:34Z")

</div>

So you need just an indicator. There isn't any "ready for use" dashboard node for that purpose.  
But You can use ui\_template node for this. Yes it requires a bit scripting to get it done but at the end you will get exactly what you need.  
Here is thread about making "LED" indicators  
[https://discourse.nodered.org/t/simple-led-indicator-on-dashboard/1375](https://discourse.nodered.org/t/simple-led-indicator-on-dashboard/1375)  
But with ui\_teplate node you can make kind of everything what is possible with html, css and javascript

---

<div class="post-metadata">

**Author:** ![wtrk](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@wtrk](https://discourse.nodered.org/u/wtrk)\
**Post date:** [9 August 2018 11:43 UTC](https://discourse.nodered.org/t/how-can-i-make-logic-1-and-logic-0-graphical-with-node-red-and-rpi-3/1697/48 "2018-08-09T11:43:26Z")

</div>

> [@hotNipi](#):
>
> So you need just an indicator. There isn't any "ready for use" dashboard node for that purpose.  
> But You can use ui\_template node for this. Yes it requires a bit scripting to get it done but at the end you will get exactly what you need.  
> Here is thread about making "LED" indicators  
> [https://discourse.nodered.org/t/simple-led-indicator-on-dashboard/1375](https://discourse.nodered.org/t/simple-led-indicator-on-dashboard/1375)  
> But with ui\_teplate node you can make kind of everything what is possible with html, css and javascript

Or I need to find a kind of thing which is working like gauge or donut,

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [9 August 2018 12:26 UTC](https://discourse.nodered.org/t/how-can-i-make-logic-1-and-logic-0-graphical-with-node-red-and-rpi-3/1697/49 "2018-08-09T12:26:45Z")

</div>

> [@wtrk](#):
>
> Or I need to find a kind of thing which is working like gauge or donut,

So you look at how the color of the donut rings changes and then use some css to hide the value that would normally show. Then send the value for the red or green. Done.

---

<div class="post-metadata">

**Author:** ![wtrk](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@wtrk](https://discourse.nodered.org/u/wtrk)\
**Post date:** [9 August 2018 12:41 UTC](https://discourse.nodered.org/t/how-can-i-make-logic-1-and-logic-0-graphical-with-node-red-and-rpi-3/1697/50 "2018-08-09T12:41:44Z")

</div>

> [@zenofmud](#):
>
> > [@wtrk](#):
> >
> > Or I need to find a kind of thing which is working like gauge or donut,
> 
> So you look at how the color of the donut rings changes and then use some css to hide the value that would normally show. Then send the value for the red or green. Done.

Im not interesting color of the donut. Color of the donut is ok.  
I dont want to use donut or other type of compass or level. I just want to show warning situation and normal situation with button. Is it possible ? When I disconnect cable button should change color to red and when I connect cable again it sholud be avtive and green. Just want to this.

---

<div class="post-metadata">

**Author:** ![cflurin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cflurin/32/29_2.png) [@cflurin](https://discourse.nodered.org/u/cflurin)\
**Post date:** [9 August 2018 12:57 UTC](https://discourse.nodered.org/t/how-can-i-make-logic-1-and-logic-0-graphical-with-node-red-and-rpi-3/1697/51 "2018-08-09T12:57:28Z")

</div>

I've already posted a solution here:

> [@How Can I Make Logic 1 and Logic 0 graphical with Node red and RPi 3](https://discourse.nodered.org/t/how-can-i-make-logic-1-and-logic-0-graphical-with-node-red-and-rpi-3/1697/17):
>
> Here is an example only with the buttons: [pump-dsm2] [{"id":"2805c87d.5001a8","type":"dsm","z":"895bbff8.0e6c4","name":"state right","sm\_config":"{\n \"triggerInput\": \"payload\",\n \"currentState\": \"running\",\n \"states\": {\n \"stopped\": {\n \"0\": \"running\"\n },\n \"running\": {\n \"1\": \"stopped\"\n }\n },\n \"methods\": {\n \"onBeforeTransition\": \"msg.pyload = msg.payload.toString();\",\n \"0\": \"st…

Just change the dsm configuration:

```auto
{
    "triggerInput": "payload",
    "currentState": "running",
    "states": {
        "stopped": {
            "0": "running"
        },
        "running": {
            "1": "stopped"
        }
    },
    "methods": {
        "onBeforeTransition": "msg.pyload = msg.payload.toString();",
        "0": "sta.fill='green';msg.background='green';msg.label='Everything is OK';",
        "1": "sta.fill='red';msg.background='red';msg.label='Warning!';"
    }
}

```

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [9 August 2018 13:28 UTC](https://discourse.nodered.org/t/how-can-i-make-logic-1-and-logic-0-graphical-with-node-red-and-rpi-3/1697/52 "2018-08-09T13:28:34Z")

</div>

Ahh sorry I didn’t read it carefully enough. It’s what happens when a 17 month granddaughter spends the night in your bed...I definitely need a second cup of coffee...wait...🤔 did I already have a second cup...

---

<div class="post-metadata">

**Author:** ![wtrk](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@wtrk](https://discourse.nodered.org/u/wtrk)\
**Post date:** [9 August 2018 13:32 UTC](https://discourse.nodered.org/t/how-can-i-make-logic-1-and-logic-0-graphical-with-node-red-and-rpi-3/1697/53 "2018-08-09T13:32:02Z")

</div>

> [@cflurin](#):
>
> { "triggerInput": "payload", "currentState": "running", "states": { "stopped": { "0": "running" }, "running": { "1": "stopped" } }, "methods": { "onBeforeTransition": "msg.pyload = msg.payload.toString();", "0": "sta.fill='green';msg.background='green';msg.label='Everything is OK';", "1": "sta.fill='red';msg.background='red';msg.label='Warning!';" } }

Thank you very much, you rock brother. Thats working.

---

<div class="post-metadata">

**Author:** ![wtrk](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@wtrk](https://discourse.nodered.org/u/wtrk)\
**Post date:** [14 August 2018 10:09 UTC](https://discourse.nodered.org/t/how-can-i-make-logic-1-and-logic-0-graphical-with-node-red-and-rpi-3/1697/54 "2018-08-14T10:09:42Z")

</div>

Again me sorry everybody.

After some test now I have one more problem..

GPIO02 ve GPIO03 ports working perfectly when I disconnect cable donut change color and gives error  
but I cant use any other ports.

Because I have 4 signal output, and made this design but I tried all ports not working except 3 and 5 . ANy solution for me?  
Thank you.

 ![Untitled](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/a/a705dec6ae806e925154e32551a47edcde983616.png)

````auto
[{"id":"5fa211e8.7401e","type":"dsm","z":"1ecb654.7ecff9b","name":"state right","sm_config":"{\n \"triggerInput\": \"payload\",\n \"currentState\": \"running\",\n \"states\": {\n \"stopped\": {\n \"0\": \"running\"\n },\n \"running\": {\n \"1\": \"stopped\"\n }\n },\n \"methods\": {\n \"onBeforeTransition\": \"msg.pyload = msg.payload.toString();\",\n \"0\": \"sta.fill='green';msg.background='green';msg.label='1st Everything is OK';\",\n \"1\": \"sta.fill='red';msg.background='red';msg.label='1st Warning!';\"\n }\n}","x":886,"y":75,"wires":[["d05ca3fe.fa7de","b73afafa.977fc8"]]},{"id":"f4015f8a.b963d","type":"rpi-gpio in","z":"1ecb654.7ecff9b","name":"Raspberry PI 3","pin":"3","intype":"tri","debounce":"25","read":false,"x":607,"y":85,"wires":[["5fa211e8.7401e"]]},{"id":"d05ca3fe.fa7de","type":"ui_button","z":"1ecb654.7ecff9b","name":"","group":"6a41e602.c50388","order":0,"width":0,"height":0,"passthru":false,"label":"{{msg.label}}","color":"","bgcolor":"{{msg.background}}","icon":"","payload":"","payloadType":"str","topic":"","x":1081,"y":131,"wires":[[]]},{"id":"b73afafa.977fc8","type":"ui_gauge","z":"1ecb654.7ecff9b","name":"","group":"6a41e602.c50388","order":0,"width":0,"height":0,"gtype":"donut","title":"","label":"","format":"","min":0,"max":"1","colors":["#00f900","#e6e600","#00af00"],"seg1":"","seg2":"","x":1079,"y":70,"wires":[]},{"id":"80d758da.0f1c58","type":"dsm","z":"1ecb654.7ecff9b","name":"state right","sm_config":"{\n \"triggerInput\": \"payload\",\n \"currentState\": \"running\",\n \"states\": {\n \"stopped\": {\n \"0\": \"running\"\n },\n \"running\": {\n \"1\": \"stopped\"\n }\n },\n \"methods\": {\n \"onBeforeTransition\": \"msg.pyload = msg.payload.toString();\",\n \"0\": \"sta.fill='green';msg.background='green';msg.label='2nd Everything is OK';\",\n \"1\": \"sta.fill='red';msg.background='red';msg.label='2nd Warning!';\"\n }\n}","x":876,"y":246,"wires":[["c1f57169.80457","d13d04c7.d1e938"]]},{"id":"121bda4b.614256","type":"rpi-gpio in","z":"1ecb654.7ecff9b","name":"Raspberry PI 5","pin":"5","intype":"tri","debounce":"25","read":false,"x":597,"y":256,"wires":[["80d758da.0f1c58"]]},{"id":"c1f57169.80457","type":"ui_button","z":"1ecb654.7ecff9b","name":"","group":"6b80c93e.6b75f8","order":0,"width":0,"height":0,"passthru":false,"label":"{{msg.label}}","color":"","bgcolor":"{{msg.background}}","icon":"","payload":"","payloadType":"str","topic":"","x":1071,"y":302,"wires":[[]]},{"id":"d13d04c7.d1e938","type":"ui_gauge","z":"1ecb654.7ecff9b","name":"","group":"6b80c93e.6b75f8","order":0,"width":0,"height":0,"gtype":"donut","title":"","label":"","format":"","min":0,"max":"1","colors":["#00f900","#e6e600","#00af00"],"seg1":"","seg2":"","x":1069,"y":241,"wires":[]},{"id":"6c4fc23d.9d3c3c","type":"dsm","z":"1ecb654.7ecff9b","name":"state right","sm_config":"{\n \"triggerInput\": \"payload\",\n \"currentState\": \"stopped\",\n \"states\": {\n \"stopped\": {\n \"0\": \"running\"\n },\n \"running\": {\n \"1\": \"stopped\"\n }\n },\n \"methods\": {\n \"onBeforeTransition\": \"msg.payload = msg.payload.toString();\",\n \"0\": [\n \"msg.ui_control = {'options':{'levelColors': ['#009000','#009000','#009000']}};\",\n \"msg.background = 'green';\",\n \"msg.label = ' 3rd Error';\"\n ],\n \"1\": [\n \"msg.ui_control = {'options':{'levelColors': ['#ff0000','#ff0000','#ff0000']}};\",\n \"msg.background = 'red';\",\n \"msg.label = ' Warning 3rd Error!';\"\n ],\n \"onAfterTransition\": \"msg.payload = '1';\",\n \"status\": {\n \"fill\": {\n \"get\": \"sm.currentState === 'running' ? 'green' : 'red';\"\n },\n \"shape\": \"dot\",\n \"text\": {\n \"get\": \"sm.currentState\"\n }\n }\n }\n}","x":884,"y":405,"wires":[["bb7229fa.020198","41a1391c.c0f7b8"]]},{"id":"a553da2.5b4a828","type":"rpi-gpio in","z":"1ecb654.7ecff9b","name":"Raspberry PI 21","pin":"8","intype":"tri","debounce":"25","read":false,"x":605,"y":415,"wires":[["6c4fc23d.9d3c3c"]]},{"id":"bb7229fa.020198","type":"ui_button","z":"1ecb654.7ecff9b","name":"","group":"bf0e3d71.9734b","order":0,"width":0,"height":0,"passthru":false,"label":"{{msg.label}}","color":"","bgcolor":"{{msg.background}}","icon":"","payload":"","payloadType":"str","topic":"","x":1079,"y":461,"wires":[[]]},{"id":"41a1391c.c0f7b8","type":"ui_gauge","z":"1ecb654.7ecff9b","name":"","group":"bf0e3d71.9734b","order":0,"width":0,"height":0,"gtype":"donut","title":"","label":"","format":"","min":0,"max":"1","colors":["#00f900","#e6e600","#00af00"],"seg1":"","seg2":"","x":1077,"y":400,"wires":[]},{"id":"3ed0ed88.313d52","type":"dsm","z":"1ecb654.7ecff9b","name":"state right","sm_config":"{\n \"triggerInput\": \"payload\",\n \"currentState\": \"running\",\n \"states\": {\n \"stopped\": {\n \"0\": \"running\"\n },\n \"running\": {\n \"1\": \"stopped\"\n }\n },\n \"methods\": {\n \"onBeforeTransition\": \"msg.pyload = msg.payload.toString();\",\n \"0\": \"sta.fill='green';msg.background='green';msg.label='4th Everything is OK';\",\n \"1\": \"sta.fill='red';msg.background='red';msg.label='4th Warning!';\"\n }\n}","x":893,"y":553,"wires":[["e1e21069.b497b","e942cd22.b0614"]]},{"id":"68975b2d.2c2c54","type":"rpi-gpio in","z":"1ecb654.7ecff9b","name":"Raspberry PI 3","pin":"23","intype":"tri","debounce":"25","read":false,"x":613,"y":566,"wires":[["3ed0ed88.313d52"]]},{"id":"e1e21069.b497b","type":"ui_button","z":"1ecb654.7ecff9b","name":"","group":"25971350.4bb48c","order":0,"width":0,"height":0,"passthru":false,"label":"{{msg.label}}","color":"","bgcolor":"{{msg.background}}","icon":"","payload":"","payloadType":"str","topic":"","x":1087,"y":612,"wires":[[]]},{"id":"e942cd22.b0614","type":"ui_gauge","z":"1ecb654.7ecff9b","name":"","group":"25971350.4bb48c","order":0,"width":0,"height":0,"gtype":"donut","title":"","label":"","format":"","min":0,"max":"1","colors":["#00f900","#e6e600","#00af00"],"seg1":"","seg2":"","x":1085,"y":551,"wires":[]},{"id":"6a41e602.c50388","type":"ui_group","z":"","name":"Assembly Lines ","tab":"ed5b6d19.3a506","disp":true,"width":"6","collapse":false},{"id":"6b80c93e.6b75f8","type":"ui_group","z":"","name":"Hol 6","tab":"ed5b6d19.3a506","disp":true,"width":"6","collapse":false},{"id":"bf0e3d71.9734b","type":"ui_group","z":"","name":"Montaj Bantları1","tab":"ed5b6d19.3a506","disp":true,"width":"6","collapse":false},{"id":"25971350.4bb48c","type":"ui_group","z":"","name":"Montaj Bantları2","tab":"ed5b6d19.3a506","disp":true,"width":"6","collapse":false},{"id":"ed5b6d19.3a506","type":"ui_tab","z":"","name":"Montaj Bantları","icon":"dashboard"}]```
````

---

<div class="post-metadata">

**Author:** ![wtrk](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@wtrk](https://discourse.nodered.org/u/wtrk)\
**Post date:** [17 August 2018 12:25 UTC](https://discourse.nodered.org/t/how-can-i-make-logic-1-and-logic-0-graphical-with-node-red-and-rpi-3/1697/55 "2018-08-17T12:25:40Z")

</div>

Is anyone here ?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [17 August 2018 12:50 UTC](https://discourse.nodered.org/t/how-can-i-make-logic-1-and-logic-0-graphical-with-node-red-and-rpi-3/1697/56 "2018-08-17T12:50:14Z")

</div>

If you put a debug node on the failing GPIO In nodes do you see anything when you change the input?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [17 August 2018 13:00 UTC](https://discourse.nodered.org/t/how-can-i-make-logic-1-and-logic-0-graphical-with-node-red-and-rpi-3/1697/57 "2018-08-17T13:00:17Z")

</div>

Have just looked at the flow and the two that you say don't work are preallocated to SCLK and TxD so unless you disable these features on the Pi setup then it may be that you can't use them in node-red. You can see they are pre-allocated because they are marked accodingly in the GPIO In node config. Try using unnallocated ones, which are the green ones. I see that you say that some of them do work, but still better to use the free ones unless you know what the significance of the others is.

---

<div class="post-metadata">

**Author:** ![wtrk](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@wtrk](https://discourse.nodered.org/u/wtrk)\
**Post date:** [17 August 2018 13:29 UTC](https://discourse.nodered.org/t/how-can-i-make-logic-1-and-logic-0-graphical-with-node-red-and-rpi-3/1697/58 "2018-08-17T13:29:05Z")

</div>

> [@Colin](#):
>
> Have just looked at the flow and the two that you say don't work are preallocated to SCLK and TxD so unless you disable these features on the Pi setup then it may be that you can't use them in node-red. You can see they are pre-allocated because they are marked accodingly in the GPIO In node config. Try using unnallocated ones, which are the green ones. I see that you say that some of them do work, but still better to use the free ones unless you know what the significance of the others is.

When I use just for digital input 1/0 valur not working greens ports..  
I dont know why these ports not working

Is this green ports just using for like sensors , motor, flame sensors ... etc ?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [17 August 2018 13:52 UTC](https://discourse.nodered.org/t/how-can-i-make-logic-1-and-logic-0-graphical-with-node-red-and-rpi-3/1697/59 "2018-08-17T13:52:08Z")

</div>

The green ports are free for you to do anything you like with. Do you mean you have tried green ones and they don't work? If so what have you connected to them and have you put a debug node on the GPIO node to see if there is any output at all?

---

<div class="post-metadata">

**Author:** ![wtrk](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@wtrk](https://discourse.nodered.org/u/wtrk)\
**Post date:** [17 August 2018 13:55 UTC](https://discourse.nodered.org/t/how-can-i-make-logic-1-and-logic-0-graphical-with-node-red-and-rpi-3/1697/60 "2018-08-17T13:55:13Z")

</div>

> [@Colin](#):
>
> The green ports are free for you to do anything you like with. Do you mean you have tried green ones and they don't work? If so what have you connected to them and have you put a debug node on the GPIO node to see if there is any output at all?

Yes like what you saying, when I connect greens not working., maybe possible to error raspberry ports.

[Previous page](https://discourse.nodered.org/t/how-can-i-make-logic-1-and-logic-0-graphical-with-node-red-and-rpi-3/1697.md?page=2)

[Next page](https://discourse.nodered.org/t/how-can-i-make-logic-1-and-logic-0-graphical-with-node-red-and-rpi-3/1697.md?page=4)
