Arduino Code For Quadrature Encoder