You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
4 years ago | |
---|---|---|
examples | 4 years ago | |
src | 4 years ago | |
test | 4 years ago | |
.eslintrc.js | 4 years ago | |
.gitignore | 4 years ago | |
.npmignore | 4 years ago | |
package.json | 4 years ago | |
readme.md | 4 years ago |
readme.md
uCOMmandIt GPIO Package for SBC GPio Pins
This module creates an instance of UCI Packet GPIO for a SBC gpio pin. This class does NOT include support for interrupt based input. See UCI-Interrupt package for that.
Set up hardware GPio bus pins as interrupts for use with UCI Interrupt
Enable access to GPios
create (if need be) a gpio group and make sure your user is in the gpio
group
change group to gpio for /sys/class/gpio/export and unexport and mode to 770.
make a new udev rules file.
SUBSYSTEM=="gpio*", PROGRAM="/bin/sh -c 'find -L /sys/class/gpio/ -maxdepth 2 -exec chown root:gpio {} \; -exec chmod 770 {} \; || true'"
That should allow access via the on/off package which is a dependency.