]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - src/adafruit_blinka/microcontroller/rp2040/pin.py
Added pre-commit support
[Adafruit_Blinka-hackapet.git] / src / adafruit_blinka / microcontroller / rp2040 / pin.py
index aaa9ac3cd53230ecde925d322777deb94f033b8b..309008c8d384f704aea730cf048f9f818b2b72a0 100755 (executable)
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
+#
+# SPDX-License-Identifier: MIT
 """RP2040 pins"""
 
 from microcontroller import Pin
@@ -25,21 +28,43 @@ GP19 = Pin(19)
 GP20 = Pin(20)
 GP21 = Pin(21)
 GP22 = Pin(22)
+GP23 = Pin(23)
+GP24 = Pin(24)
 GP25 = Pin(25)
 GP26 = Pin(26)
 GP27 = Pin(27)
 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),
@@ -51,7 +76,7 @@ SPI_PORTS = (
 )
 
 # ordered as uartId, txId, rxId
-UART_PORTS = (
+uartPorts = (
     (0, GP0, GP1),
     (0, GP0, GP13),
     (0, GP12, GP1),
@@ -63,7 +88,7 @@ UART_PORTS = (
 )
 
 # ordered as scl, sda
-I2C_PORTS = (
+i2cPorts = (
     (0, GP1, GP0),
     (0, GP1, GP4),
     (0, GP1, GP8),