Tuesday, June 26, 2007

Multiple SPI devices

I have been trying to get more than one SPI digital pot IC to work correctly with my Arduino board. Here you can see the code i have been using. It always works with pots A and B from chip 1, and sometimes with pot A from chip 2 but almost never with pot B from chip 2. I do not understand what the issue is here. But the fact that chip 2 is doing anything at all is a step forward i suppose.

[expand / collapse code]