What is Grey Code?
A digital numbering system in which only one bit is changed at a time. This results in less errors.
0 = 0000
1 = 0001
2 = 0011
3 = 0010
4 = 0110
5 = 0111
6 = 0101
You get the idea.
See D1