经过到处求爷爷告奶奶,终于跟AI问出了:
FSPID=MISO
FSPIQ=MOSI
所以在micropython里要这样初始化:
初始化SPI
spi = machine.SPI(2,
baudrate= 10000000,
polarity= 1,
phase= 1,
sck= machine.Pin(12, machine.Pin.OUT),
mosi= machine.Pin(13, machine.Pin.OUT),
miso= machine.Pin(11, machine.Pin.IN))