qmk_firmare/drivers/encoder
..
encoder_quadrature.c