How to deal with bitorder for SPI communication (MSB<->LSB)?

Got it working: PS2 Controller extension

The extension can do rbit and rbuffer: https://github.com/gbraad/pxt-reversebit