quadrature decoder needs two successive pins for input -> swapped s1