basic simple input/output for gpio pins. See uci-interrupt for gpio interrupt input
 
Go to file
David Kebler d1305a0250 0.1.14 go back to using super.read
improve examples including home assistant coordination
2019-11-21 10:07:50 -08:00
examples 0.1.14 go back to using super.read 2019-11-21 10:07:50 -08:00
src 0.1.14 go back to using super.read 2019-11-21 10:07:50 -08:00
test 0.1.14 go back to using super.read 2019-11-21 10:07:50 -08:00
.eslintrc.js Initial commit of on/off gpio initially forked from uci-interrupt 2019-06-17 12:14:52 -07:00
.gitignore Initial commit of on/off gpio initially forked from uci-interrupt 2019-06-17 12:14:52 -07:00
.npmignore Initial commit of on/off gpio initially forked from uci-interrupt 2019-06-17 12:14:52 -07:00
package.json 0.1.14 go back to using super.read 2019-11-21 10:07:50 -08:00
readme.md Initial commit of on/off gpio initially forked from uci-interrupt 2019-06-17 12:14:52 -07:00

readme.md

uCOMmandIt GPIO Package for SBC GPio Pins

Build Status Inline docs devDependencies codecov

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.