Beginner questions: Using the MCP4261 library

cyclegadget:
The wiring I am tring to refer to is found in this link:
Tutorial: Arduino and the SPI bus part II | tronixstuff.com

You may also find information about your digital pot there but, you will need to look.

Well now I think I finally got it. That was some useful info right there, thanks a lot. I had not really understood the function of the slave selection pin until now.

I have modified the example into a test code with 2 chip selection pins. In the setup part I define these pins as outputs, and then set their values to HIGH. In the I loop set the resistance of each pot in turn by setting its selection pin to LOW, setting a value with the setResistance() function, and then setting the selection pin back to HIGH. If I understood this correctly, it should work. I'll try it out tomorrow.