bxparks / AceButton

An adjustable, compact, event-driven button library for Arduino that debounces and dispatches events to a user-defined event handler.
MIT License
385 stars 37 forks source link

Multiple Buttons #29

Closed GavinBrownAus closed 4 years ago

GavinBrownAus commented 5 years ago

Hi there, just a quick question. Do you have a good example using AceButton for multiple independent buttons that are floating that go low when pressed. All are connected to individual pins on a teensy.

I've tried a number of the examples but they dont seem to work as described.

Thanks

bxparks commented 5 years ago

Buttons can't be floating, they need to have a pull-up or a pull-down resistor (internal or external). If you didn't mean to write that, then take a look at examples/TunerButtons and examples/ArrayButtons.

(I won't be able to respond to followups for about 2 weeks...)

bxparks commented 5 years ago

Back from vacation. Do you have any further questions? Otherwise, I'm going to close this.

bxparks commented 4 years ago

Closing due to lack of activity.