UIFlow Guide
spi2 = machine.SPI(1, 500000, sck=machine.Pin(-1), miso=machine.Pin(-1), mosi=machine.Pin(-1), firstbit=machine.SPI.MSB, polarity=0, phase=0)
spi2.deinit()
spi2.write(buf)
buf
through the SPI interface.spi2.write_readinto(write_buf, read_buf)
write_buf
through the SPI interface and simultaneously receive data into read_buf
.str(spi2.read(0))
spi2.readinto(buf)
buf
.