Introduction - If you have any usage issues, please Google them yourself
I'm very confident that this button handling is easy and efficient, and you can transplant it to any embedded processor because of the powerful portability of the C language.
At the same time, it uses some layered thinking, which is also very useful in the microcontroller, but also another focus of this article.