Advertisement
silver2row

gpio in dev

Dec 3rd, 2023
750
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.35 KB | None | 0 0
  1. // A udev rule along these lines is recommended, to create symlinks in /dev/gpio:
  2. //
  3. //  SUBSYSTEM=="subsystem", KERNEL=="gpio", ACTION=="add", \
  4. //      RUN+="/bin/mkdir -p /dev/gpio"
  5. //
  6. //  SUBSYSTEM=="gpio", ACTION=="add", TEST=="value", ATTR{label}!="sysfs", \
  7. //      RUN+="/bin/ln -sT '/sys/class/gpio/%k' /dev/gpio/%s{label}"
  8.  
  9. // from mvduin online at github
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement