I am trying to create a sequence of gray code pattern that relates with the frequency.
[![gray code 512][1]][1]
The above image shows for one row pixel the gray co