Skip to content

Cannot watch a digital pin on Raspberry-Pi 3 #76

Description

@allezxandre

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 the gpio4 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions