Advertisement
Guest User

trying new scripts

a guest
Mar 26th, 2022
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.52 KB | None | 0 0
  1. # install am335x-debian-11.2-minimal-armhf-2022-03-02-2gb.img
  2.  
  3. # sudo apt install make gcc g++ python3-pip cmake
  4.  
  5. # git clone https://github.com/silver2row/BBBW_RELAYCAPE
  6.  
  7. # This goes in /etc/udev/rules.d/80-relay.rules
  8.  
  9. SUBSYSTEM=="subsystem", KERNEL=="gpio", ACTION=="add",
  10.     RUN+="/bin/mkdir -p /dev/gpio"
  11.  
  12. SUBSYSTEM=="gpio", ACTION=="add", TEST=="value", ATTR{label}!="sysfs",
  13.     RUN+="/bin/ln -sT '/sys/class/gpio/%k' /dev/gpio/%s{label}"
  14.  
  15. # 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