Good morning,
I am trying to use the GPIO pins in Node-red but it does not detect them with the PI-Gpio node. any ideas?
Greetings!
Good morning,
I am trying to use the GPIO pins in Node-red but it does not detect them with the PI-Gpio node. any ideas?
Greetings!
did you find any solution ?
sudo mcedit /root/pio.sh
sudo echo 60 > /sys/class/gpio/export
sudo echo out > /sys/class/gpio/gpio60/direction
sudo chmod 666 /sys/class/gpio/export
sudo chmod 666 /sys/class/gpio/gpio60/value
sudo chmod +x /root/pio.sh
In /etc/sudousers add line
rock ALL=(ALL) NOPASSWD:ALL // Disable sudo password
sudo /root/pio.sh
echo 1 > /sys/class/gpio/gpio60/value // Testing
In /etc/rc.local add string: sudo /root/pio.sh
before exit 0
sudo apt-get install build-essential
Add nodes node-red-contrib-opi-gpio
In Node-RED, in node opi-gpio, set “output pin=60”