Gray Codes

The bits of a binary number are conventionally interpreted as powers of two that are present or not in the number represented. Other interpretations have special advantage.

The available bit patterns can be shuffled such that no two bits change at the same time when counting up or down. This is the preferred representation when the number represents a rotation detected by mechanical switches since there will be no ambiguity as switches mate or break at their own pace.