Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odroid U3: edge file needs to be reset on start #25

Open
noniq opened this issue Jul 25, 2014 · 0 comments
Open

Odroid U3: edge file needs to be reset on start #25

noniq opened this issue Jul 25, 2014 · 0 comments

Comments

@noniq
Copy link

noniq commented Jul 25, 2014

I’m using this awesome gem for a project with an Odroid U3. The relevant lines from the script are simply:

after pin: 199, goes: :high do
  # do something
end
PiPiper.wait

Everything works fine when I the script is started for the first time. However, if the script is stopped (Ctrl-C) and then started again, the block is no longer called even if the pin changes.

It found out that this can be fixed by “resetting” the edge file at the start of the script like this:

File.write "/sys/class/gpio/gpio199/edge", "none"

Should this be included in pi_piper?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant