I have to echo Mike here. I'm confused by how you are using analog in to drive serial clock and serial data lines to the device.
Shouldn't you be measuring the voltage drop across the pot via analog in, while clocking data to the pot?
I have to echo Mike here. I'm confused by how you are using analog in to drive serial clock and serial data lines to the device.
Shouldn't you be measuring the voltage drop across the pot via analog in, while clocking data to the pot?