I have an Arduino Mega and MCP41010 Digital Potentiometer and it doesn't seem to be adjusting the resistance. Has anyone had luck with this combination as I can't get it to work. I used the 5 chips I've had and all don't work. The Mega board also seems to be working properly so all I can think that is causing the problem is the code.
Anyone have code that works? Or is there something in particular I need to add in the code?
[and the wiring its exactly like the picture there.](http://and the wiring its exactly like the picture there.)
But that is not a Maga in the wiring and this post is about a Mega.