From 6245fc91a42d1833ab9351e2764805cf09fe1b19 Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Thu, 6 May 2021 19:02:27 -0700 Subject: [PATCH] Moar pins --- src/adafruit_blinka/board/raspberry_pi_pico.py | 11 ++++++++++- src/adafruit_blinka/microcontroller/rp2040/pin.py | 3 +++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/adafruit_blinka/board/raspberry_pi_pico.py b/src/adafruit_blinka/board/raspberry_pi_pico.py index 37b0794..e554ad1 100755 --- a/src/adafruit_blinka/board/raspberry_pi_pico.py +++ b/src/adafruit_blinka/board/raspberry_pi_pico.py @@ -1,4 +1,4 @@ -"""PyBoard pin names""" +"""Raspberry Pi Pico pin names""" from adafruit_blinka.microcontroller.rp2040 import pin @@ -25,8 +25,17 @@ GP19 = pin.GP19 GP20 = pin.GP20 GP21 = pin.GP21 GP22 = pin.GP22 +GP23 = pin.GP23 +GP24 = pin.GP24 GP25 = pin.GP25 GP26 = pin.GP26 GP27 = pin.GP27 GP28 = pin.GP28 LED = GP25 +SMPS_MODE = GP23 +VBUS_SENSE = GP24 +A0 = GP26 +A1 = GP27 +A2 = GP28 +A3 = pin.GP29 +VOLTAGE_MONITOR = pin.GP29 diff --git a/src/adafruit_blinka/microcontroller/rp2040/pin.py b/src/adafruit_blinka/microcontroller/rp2040/pin.py index aaa9ac3..6febdc4 100755 --- a/src/adafruit_blinka/microcontroller/rp2040/pin.py +++ b/src/adafruit_blinka/microcontroller/rp2040/pin.py @@ -25,10 +25,13 @@ 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 = ( -- 2.49.0