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

**URL:** <https://forum.makecode.com/t/how-to-deal-with-bitorder-for-spi-communication-msb-lsb/1309>\
**Category:** micro:bit\
**Created:** [March 1, 2020, 1:57pm UTC](https://forum.makecode.com/t/how-to-deal-with-bitorder-for-spi-communication-msb-lsb/1309 "2020-03-01T13:57:14Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![gbraad](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gbraad/32/338_2.png) [@gbraad](https://forum.makecode.com/u/gbraad)\
**Post date:** [March 14, 2020, 8:30am UTC](https://forum.makecode.com/t/how-to-deal-with-bitorder-for-spi-communication-msb-lsb/1309/16 "2020-03-14T08:30:41Z")

</div>

Got it working: [PS2 Controller extension](https://forum.makecode.com/t/ps2-controller-extension/1409)

The extension can do `rbit` and `rbuffer`: [https://github.com/gbraad/pxt-reversebit](https://github.com/gbraad/pxt-reversebit)

---

_[View the full topic](https://forum.makecode.com/t/how-to-deal-with-bitorder-for-spi-communication-msb-lsb/1309)._
