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

Prevent button debounce on repeater input #5

Closed
allebb opened this issue Aug 17, 2017 · 3 comments
Closed

Prevent button debounce on repeater input #5

allebb opened this issue Aug 17, 2017 · 3 comments
Assignees

Comments

@allebb
Copy link
Owner

allebb commented Aug 17, 2017

Currently, the interupts code that has been implemented into the test script does not determine when the button is released, thus making it hard to stop the recording of audio.

Will need to look into this but for now, I have posted a comment here: PiPHP/GPIO#5

May be able to handle this differently going forward, eg. use a loop and check state internally to start and stop recording.

@allebb allebb self-assigned this Aug 17, 2017
@allebb
Copy link
Owner Author

allebb commented Aug 17, 2017

Could also potentially look at using this library instead, it supports events too: https://github.com/calcinai/phpi and probably better too! It touts about using React and lower level access to the GPIO pins for speed.

@allebb
Copy link
Owner Author

allebb commented Aug 17, 2017

A good working example of which I could use for the repeater application is here: https://github.com/calcinai/phpi/blob/master/examples/high_level_events.php

@allebb
Copy link
Owner Author

allebb commented Aug 27, 2017

This has been fixed on my new GPIO library that can be found here: https://github.com/allebb/gpio.

Therefore this issue can now be resolved and closed accordingly.

@allebb allebb closed this as completed Aug 27, 2017
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