Are you using the shiftout command? If so you can select MSB or LSB first.