Introduction - If you have any usage issues, please Google them yourself
1. Connect the encoder I/O port is initialized to inputs with pull 2. Turn on the external microcontroller interrupt 0, and configured to any logic level change will trigger an interrupt 3. Provide Read encoder count API 4. Read encoder provides the rotational direction of the API