started writing minimalistic quadrature encoder logic
minimalistic quadrature encoder counter works without metastability