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

vButton.onPressedFor issue #59

Open
mdleisure opened this issue Oct 1, 2021 · 1 comment
Open

vButton.onPressedFor issue #59

mdleisure opened this issue Oct 1, 2021 · 1 comment
Assignees

Comments

@mdleisure
Copy link

Hi I have used the example in the library examples to test the Vbutton code.

I am using esp8266 (12e) and a MCP23017 non interupt

I have tried both with a library for the 23017 and also direct register coding and I get the same result when trying to use on pressed for.

As soon as I add the vButton.onPressedFor(2000, buttonPressedForTwoSeconds); into the code then that it pretty much all you will get.

There is not really any single press anymore. As soon as you do a single press there is a slight delay and then the callback for onpressed for runs and not the single press.

I have no problem running on the Internal GPIO pins on the esp but using a 23017 and the Vbutton for io ports gives me this issue.

I have displayed the bool to see if it was holding an incorrect state but that it all fine.

It just seems to be as soon as you add in the pressed for it only uses that.

Has anyone else done a physical test that may be able to help.

Thanks

@evert-arias evert-arias self-assigned this Mar 12, 2022
@sledzik1984
Copy link

I also have this problem

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

3 participants