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

ESP32Cam only pin 4 working #18

Open
borki74 opened this issue Jan 23, 2023 · 2 comments
Open

ESP32Cam only pin 4 working #18

borki74 opened this issue Jan 23, 2023 · 2 comments

Comments

@borki74
Copy link

borki74 commented Jan 23, 2023

Hi,
I'm using the library with an ESP32Cam, and it works on pin 4, bot not on any other buttons.
Please help,

Matt

@ArduinoGetStarted
Copy link
Owner

Dear @borki74

I am sorry for the late reply.
I have not tested with ESP32Cam yet. I will test it when I have hardware and time.
If you find anything related to this, please share here.
Thank you

@bertenvdb
Copy link

Hi, I'm using the library with an ESP32Cam, and it works on pin 4, bot not on any other buttons. Please help,

Matt

I've had a similar problem with my AZDelivery D1 Mini ESP32. Two pins would work, the other ones didn't. I noticed ezButton has 2 constructors:

ezButton(int pin);
ezButton(int pin, int mode);

Looking at the implementation:
ezButton::ezButton(int pin): ezButton(pin, INPUT_PULLUP) {};

So I double checked the datasheet of my board and apparently the pins that wouldn't work don't have an internal pullup resistor. My problem was solved by using INPUT instead of the default INPUT_PULLUP.

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