adafruit / Adafruit_Blinka

Add CircuitPython hardware API and libraries to MicroPython & CPython devices
https://learn.adafruit.com/circuitpython-on-raspberrypi-linux
MIT License
439 stars 327 forks source link

Add support for missing rp2040 SPI0 RX (GP20) pin #662

Closed FlantasticDan closed 1 year ago

FlantasticDan commented 1 year ago

I noticed the SPI0 RX capability of the GP20 pin was throwing an error in MicroPython via Blinka but not in native CircuitPython on a Pico W. I'm specifically using busio.SPI(board.GP18, MOSI=board.GP19, MISO=board.GP20) and have confirmed this PR fixes that pin combination. I used the Pico W Pinout to infer the remaining SPI0 combinations.