Open allezxandre opened 7 years ago
When trying to Watch a pin for a change in its readings, Watch returns a non-nil error:
Watch
open /sys/class/gpio/gpio4/edge: no such file or directory
and indeed, /sys/class/gpio/ does not contain the gpio4 folder.
/sys/class/gpio/
gpio4
I installed WiringPi and ran gpio export 4 in, which makes /sys/class/gpio/gpio4/edge appear. But then, running my program again, Watch yields:
gpio export 4 in
/sys/class/gpio/gpio4/edge
bad file descriptor
When trying to
Watch
a pin for a change in its readings,Watch
returns a non-nil error:open /sys/class/gpio/gpio4/edge: no such file or directory
and indeed,
/sys/class/gpio/
does not contain thegpio4
folder.I installed WiringPi and ran
gpio export 4 in
, which makes/sys/class/gpio/gpio4/edge
appear. But then, running my program again,Watch
yields:bad file descriptor