Input: rotary_encoder - support binary encoding of states