Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[node-red-node-pi-gpio] on Venus OS and other non raspian OS #1046

Open
lodi12 opened this issue Jan 16, 2024 · 0 comments
Open

[node-red-node-pi-gpio] on Venus OS and other non raspian OS #1046

lodi12 opened this issue Jan 16, 2024 · 0 comments

Comments

@lodi12
Copy link

lodi12 commented Jan 16, 2024

The workaround proposed here (https://flows.nodered.org/node/node-red-node-pi-gpio) for non raspian OS works good for input and output setup and set/read function but it does not work with edge detection.

A possible workaround can be found here https://forums.raspberrypi.com/viewtopic.php?t=302177.

Basically, the following lines must be added to the rule file too:

SUBSYSTEM=="gpio", KERNEL=="gpiochip*", ACTION=="add", PROGRAM="/bin/sh -c 'chown root:dialout /sys/class/gpio/export /sys/class/gpio/unexport ; chmod 220 /sys/class/gpio/export /sys/class/gpio/unexport'"
SUBSYSTEM=="gpio", KERNEL=="gpio*", ACTION=="add", PROGRAM="/bin/sh -c 'chown root:dialout /sys%p/active_low /sys%p/direction /sys%p/edge /sys%p/value'"
SUBSYSTEM=="gpio", KERNEL=="gpio*", ACTION=="add", PROGRAM="/bin/sh -c 'chmod 660 /sys%p/active_low /sys%p/direction /sys%p/edge /sys%p/value'"

Please, add to the help for this node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant