-
Notifications
You must be signed in to change notification settings - Fork 30
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
Library does not support buttons with pull down resistors #7
Comments
Dear Divino-Fire, |
I am 100% for inverted buttons as well to be added. Btw I am an electrician with hundred years of experience, and since I was in school, the ON was always when something is HIGH, so I always design my projects to be LOW = OFF, HIGH = ON. |
Dear @homonto |
HI @ArduinoGetStarted! Just wondering if the library has been updated to support pull-down resistors. I am trying to use this on the Adafruit ESP32-S2 Reverse TFT that has two buttons that are normally low, and one button that is normally high. |
Hi I am also wondering if there is pulldown support yet. I hac a project that uses 3 buttons in a pulldown configuration. in 3 GPIOs that do not have internal pull up or down resistors |
Hello,
Thank you for your interest in the ezButton library.
Unfortunately, until now, I still have no time to update it to support the
pulldown. I am sorry for this inconvenience!
Have a nice day!
Best regards.
…On Tue, Nov 28, 2023 at 2:28 PM hselomein ***@***.***> wrote:
Hi I am also wondering if there is pulldown support yet. I hac a project
that uses 3 buttons in a pulldown configuration. in 3 GPIOs that do not
have internal pull up or down resistors
—
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANZMLXDRHCJGMTYMZDFILYDYGVZBRAVCNFSM5DVY4KCKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBSHEYTGMJXGUZQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
hi @hselomein |
If you use pulldown resistors, you can make use of these bits: Line 57 in 2b2d120
Lines 34 to 43 in 2b2d120
and write:
or if you are on a device with INPUT_PULLDOWN you can:
|
I have a working project, it's stressful and error-prone for me to open it and change the button connection with a pull-down resistor to a pull-up resistor. I would like to just program the buttons to support debounce through the programming interface without modifying the hardware.
The text was updated successfully, but these errors were encountered: