Arduino/ESP button library that provides callback functions to track single, double, triple and long clicks. It also takes care of debouncing.
Why do you think that https://github.com/Billwilliams1952/AD9833-Library-Arduino is a good alternative to Button2