 Gray code

The reflected binary code (RBC), also known just as reflected binary (RB) or Gray code after Frank Gray, is an ordering of the binary numeral system such that two successive values differ in only one bit (binary digit).For example, the representation of the decimal value "1" in binary would normally be "001" and "2" would be "010".