Introduction - If you have any usage issues, please Google them yourself
Speed control using two buttons and a NAND gate, share a common external interrupt, velocity measurement using an external interrupt, and realize the speed control and speed measurement at the same time