Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # install am335x-debian-11.2-minimal-armhf-2022-03-02-2gb.img
- # sudo apt install make gcc g++ python3-pip cmake
- # git clone https://github.com/silver2row/BBBW_RELAYCAPE
- # This goes in /etc/udev/rules.d/80-relay.rules
- SUBSYSTEM=="subsystem", KERNEL=="gpio", ACTION=="add",
- RUN+="/bin/mkdir -p /dev/gpio"
- SUBSYSTEM=="gpio", ACTION=="add", TEST=="value", ATTR{label}!="sysfs",
- RUN+="/bin/ln -sT '/sys/class/gpio/%k' /dev/gpio/%s{label}"
- # I tried to use /dev/gpio/relay-jp3/ but there were not any entries in the file.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement