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

Detecting short impulses in Digital input #131

Open
T4r4sB opened this issue Apr 17, 2017 · 1 comment
Open

Detecting short impulses in Digital input #131

T4r4sB opened this issue Apr 17, 2017 · 1 comment

Comments

@T4r4sB
Copy link

T4r4sB commented Apr 17, 2017

If I would check digital input with function in.read() every 10 ms, I will miss some short impulses with duration less than 10 ms. If I would wait impulses with function in.waitForValue(...), this function will lock thread until input state will change. So I need to use the new thread which will only listen input? Is there single-thread way to detect short impulses?

@ytai
Copy link
Owner

ytai commented Apr 22, 2017 via email

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

2 participants