GPIO Node Red
-
Hi!
Need to ask do onion.io have any add on for GPIO for Node Red? or some one else have or have good way to do this.
-
I know the onion-gpio-sysfs library for Python utilizes calls to sysfs to control and monitor GPIO lines. I did a quick google for node red sysfs GPIO and came up with this:
https://flows.nodered.org/node/node-red-contrib-opi-gpio
Might give it a shot, I haven't tried it but I'd say there's a decent shot at it working.
-
Hi,
dont't know if this will help. I can toggle a led that is attached to GPIO18 by this flow. So it is possible to manage GPIO output or input by system commands
-
I am afraid this is not the most sophisticated setup of all times. But it shows how I can handle input or output on Omega2 pro in Node Red.
There is a pushbutton connected to GPIO0 for input. The led is connected to GPIO18 for output. As soon as I press the pushbutton the led will light. When I release the button, the led will turn off.
Instead of turning on the led Node-Red will give me other possibilities without specific programming. I could twitter 'Hi everybody. I've just pressed the pushbutton!"
-
It appears this no longer works.
https://www.thegoodpenguin.co.uk/blog/stop-using-sys-class-gpio-its-deprecated/Is there another easy way to "watch" the state of a gpio in Node-Red?