So, I need my arduino to read and analog value (0 to 1023) and then send it through 4 digital pins. My idea was to do something like this:
analogvalue = 850
analogvalue/64 = 1110
What I need is to convert and INT into a BIN and then send that BIN through the digital pins. Any thoughts?