Code: Select all
vspi = SPI(2, 1000000, polarity=0, phase=0, bits=16, firstbit=0, sck=Pin(18), mosi=Pin(23), miso=Pin(19))
test = bytearray(16)
ss.off()
vspi.write_readinto((0xff).to_bytes(16, 'little'), test);
ss.on()
By comparison it only takes 78 uS to bring the SS line back up afterwards. Any ideas how I can speed this up? I need to send 512KB with SPI and a near 1ms delay for each transmission adds up.
Thanks!