X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/4782c180b240d80a772f63ca81e0876f39a69c26..03548b64a8d7b407b4ae6464c5ffc551be8fc0be:/src/adafruit_blinka/microcontroller/rp2040/pin.py diff --git a/src/adafruit_blinka/microcontroller/rp2040/pin.py b/src/adafruit_blinka/microcontroller/rp2040/pin.py index 6febdc4..309008c 100755 --- a/src/adafruit_blinka/microcontroller/rp2040/pin.py +++ b/src/adafruit_blinka/microcontroller/rp2040/pin.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries +# +# SPDX-License-Identifier: MIT """RP2040 pins""" from microcontroller import Pin @@ -34,15 +37,34 @@ GP28 = Pin(28) GP29 = Pin(29) # ordered as spiId, sckId, mosiId (tx), misoId (rx) -SPI_PORTS = ( +spiPorts = ( (0, GP2, GP3, GP0), (0, GP2, GP3, GP4), + (0, GP2, GP3, GP16), (0, GP2, GP7, GP0), (0, GP2, GP7, GP4), + (0, GP2, GP7, GP16), + (0, GP2, GP19, GP0), + (0, GP2, GP19, GP4), + (0, GP2, GP19, GP16), (0, GP6, GP3, GP0), (0, GP6, GP3, GP4), + (0, GP6, GP3, GP16), (0, GP6, GP7, GP0), (0, GP6, GP7, GP4), + (0, GP6, GP7, GP16), + (0, GP6, GP19, GP0), + (0, GP6, GP19, GP4), + (0, GP6, GP19, GP16), + (0, GP18, GP3, GP0), + (0, GP18, GP3, GP4), + (0, GP18, GP3, GP16), + (0, GP18, GP7, GP0), + (0, GP18, GP7, GP4), + (0, GP18, GP7, GP16), + (0, GP18, GP19, GP0), + (0, GP18, GP19, GP4), + (0, GP18, GP19, GP16), (1, GP10, GP11, GP8), (1, GP10, GP11, GP12), (1, GP10, GP15, GP8), @@ -54,7 +76,7 @@ SPI_PORTS = ( ) # ordered as uartId, txId, rxId -UART_PORTS = ( +uartPorts = ( (0, GP0, GP1), (0, GP0, GP13), (0, GP12, GP1), @@ -66,7 +88,7 @@ UART_PORTS = ( ) # ordered as scl, sda -I2C_PORTS = ( +i2cPorts = ( (0, GP1, GP0), (0, GP1, GP4), (0, GP1, GP8),