Introduction - If you have any usage issues, please Google them yourself
Based on ATmegal16, detection of AB-foot two-way grating signal, determine the direction of grating movement of feet, the program prepared by me, simple, mainly involving the application of external interrupt