I'm having a little trouble relating inputs to outputs. I would think that to turn on all of the switches I would pass it a 255 value through SPI.transfer() and to turn off all of the switches I would pass it a 0. However, actually testing it I get (switch states on right with switch 0 at the left, decimal value on left):
255: 10011100 0: 01001110 207: 11111011
I see little rhyme or reason to this.
Oh, and trying another identical switch..
Does anyone have any insight into what could be going on and how I can fix it?