EC11 encoder driver using ESP32 developement board ---- M5StickC
Inplemented functions: 1, read ratory counter 2, read button press
Hardware requirement: 1, A B and button connect to 5V through pullup resistor(4.7K - 10K) 2, A --- PIN26 B --- PIN36 button ---PIN0 3, Use HAT-PROTO-PLUS for hardware components wiring.