-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
ESP32 - Gpio repeated behaviour #630
Comments
Hi @valoni, |
I can confirm this bug I get the same results using the sample code. |
If you are using physical buttons you must add a DebounceTimeout as the buttons bounce and create multiple events for every click.
The only thing that seems wrong is you get currently get multiple Unclicked or multilpe clicks events in a row which is wrong. |
after your suggestion i did UserBtn = GpioController.GetDefault().OpenPin(0);
UserBtn.SetDriveMode(GpioPinDriveMode.InputPullUp);
UserBtn.DebounceTimeout = new TimeSpan(0, 0, 0, 0, 50);
UserBtn.ValueChanged += UserBtn_ValueChanged; click work well now , so i belive it just need to be documented this case if used ESP32 .. |
Details about Problem
Target: ESP32
Firmware image version: Stable 1.4.2.1 (evend latest develop)
A clear and concise description of what the bug is.
Detailed repro steps so we can see the same problem
source code :
behaviour on GpioPinValueChangedEventArgs event trigger unexpected.
and repeat click/unclick multiple time ?? (if button pressed once)
Expected behaviour
Button Clicked (once)
after release button - Button Unclicked (once)
The text was updated successfully, but these errors were encountered: