How to define SPI bit sending order in esp8266 micropython

Thread Starter

yef smith

Joined Aug 2, 2020
246
Hello,In the code bellow We define SPI communication in micropython ,but there is no setting for bit order (Big endian,little endian)
How do i define that it would be MSB first?
Thanks.

Code:
from machine import Pin,SPI
from time import sleep

spi = machine.SPI(1, baudrate=1000000, polarity=0, phase=0)
spi.write(b'1234')
1608325038487.png
 
Top