You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m using this awesome gem for a project with an Odroid U3. The relevant lines from the script are simply:
afterpin: 199,goes: :highdo# do somethingendPiPiper.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?
The text was updated successfully, but these errors were encountered:
I’m using this awesome gem for a project with an Odroid U3. The relevant lines from the script are simply:
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:
Should this be included in pi_piper?
The text was updated successfully, but these errors were encountered: