Shiftout should really have an optional argument that allows a specification of bits, to accommodate different frame sizes, ints and longs. I have used various chips that want oddball framesizes like 11 bits.

I changed the docs to provide a warning about this, after wasting some time trying to send an int, guess I should have believed the original docs.