Default SPI0 on Pico interfering with GPIO 7?
Posted: Sun Jul 03, 2022 5:05 am
Hello,
I have my SPI0 setup on RP2040 Pico as follows (MicroPython v1.19.1):
The problem is that pin_crst.value() on PIN_CRST has no effect when its value is 7 (GPIO7). Works fine when the it's set to pin 8 (GPIO8).
Is SPI0 somehow interfering with pin 7? Thanks for any insights.
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.