evert-arias / EasyButton

Arduino library for debouncing momentary contact switches, detect press, release, long press and sequences with event definitions and callbacks.
https://easybtn.earias.me
MIT License
447 stars 62 forks source link

Reading buttons in for loop #92

Open saulGoodmannnn opened 4 months ago

saulGoodmannnn commented 4 months ago

hi i created array of EasyButton objects button[] and i initialize them in for loop and it works fine but when i try to update their state by button[i].read() its not working and buttons dont react to being pressed