MCP4231, using only one of the two digital potentiometers

Ok, is see one mistake. I did not do this on the start of the code #include <SPI.h>