Updated Devon's optical encoder I/O code, including new feature of polled clicks for encoders packaged into functions