-
Notifications
You must be signed in to change notification settings - Fork 61
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
How to Prevent Bouncing / Debounce mode #47
Comments
Hi yoko, int p1Digital = PCF8574.digitalRead(P1, true); // read P1 without debounce You can find more information here Bye Renzo |
Thanks for fast respond , firs I'll Try to uncomment the LOW LATENCY.. and I will report again |
@xreef Two method that you had explain did not work as expected , I'm not sure, maybe stranger behavior came from my waveshare pcf8574 module this is modified sketch that work as I need https://www.mischianti.org/2019/01/02/pcf8574-i2c-digital-i-o-expander-fast-easy-usage/ #include "Arduino.h" // For arduino uno only pin 1 and 2 are interrupted // Set i2c address
digitalWrite(led, HIGH); bool keyPressed = false; } ` |
It's very strange behavior, I think I can't re-generate that situation. |
I Found kind of BUG , But if Write the statement like I found this situation in your example Keypressed_WithInterrupt and InterruptWemos. Maybe if you don't mind you can try it. Thanks |
Hi joko, |
ok thanks for your attention |
Hi Joko, |
Helo @xreef ,
Is that any Function or config to Prevent bounce?,
I've try your example , but I have problem with bounce
I used ESP32 Dev Module with Arduino IDE 1.8.12.
Could you give and example sketch ?
I Use Pin 0 - 7 as input and also use INT pin to be external ISR for ESP32.
I also implemented your Interrupt Wemos Example but went the button is pressed It is not exact same condition time to time..
Thanks
The text was updated successfully, but these errors were encountered: