SwitchLib
I needed a library to poll multiple buttons. Since I had three buttons but needed at least 4 functions, I implemented a short/long press detection. Each button can therefore be pressed briefly or for a longer duration and, after release, will call a callback method accordingly. Apart from a loop through the buttons, this library should not…
Continue reading "SwitchLib"