📅  最后修改于: 2022-03-11 14:59:01.893000             🧑  作者: Mango
(sum is last reading + current reading)
if(sum == 0b1101 || sum == 0b0100 || sum == 0b0010 || sum == 0b1011) encoderValue ++; //clockwise movement
if(sum == 0b1110 || sum == 0b0111 || sum == 0b0001 || sum == 0b1000) encoderValue --; //counter-clockwise movement