https://ideahay.blogspot.com/2021/11/su-dung-rotary-encoders-voi-arduino.html