I have my SPI0 setup on RP2040 Pico as follows (MicroPython v1.19.1):
Code: Select all
PIN_SS = 17
PIN_MOSI = 19
PIN_MISO = 16
PIN_SCK = 18
PIN_CRST = 7
# init SPI
spi = SPI(0, baudrate=2000000, polarity=0, phase=0, firstbit=SPI.MSB, sck=Pin(PIN_SCK), mosi=Pin(PIN_MOSI), miso=Pin(PIN_MISO))
# set up pins
pin_ss = Pin(PIN_SS, Pin.OUT)
pin_crst = Pin(PIN_CRST, Pin.OUT)
Is SPI0 somehow interfering with pin 7? Thanks for any insights.