From 6bb60745bef0fe442dbbcc126beb79c308714816 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Tue, 7 Mar 2023 09:50:19 +0100 Subject: [PATCH] rp2/boards/ARDUINO_NANO_RP2040_CONNECT: Add more external pins. Add the missing A4, A5 external (Nina-W controlled) pins. --- .../boards/ARDUINO_NANO_RP2040_CONNECT/mpconfigboard.h | 2 +- ports/rp2/boards/ARDUINO_NANO_RP2040_CONNECT/pins.csv | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ports/rp2/boards/ARDUINO_NANO_RP2040_CONNECT/mpconfigboard.h b/ports/rp2/boards/ARDUINO_NANO_RP2040_CONNECT/mpconfigboard.h index 6498cbf560..a4fb8b7c8c 100644 --- a/ports/rp2/boards/ARDUINO_NANO_RP2040_CONNECT/mpconfigboard.h +++ b/ports/rp2/boards/ARDUINO_NANO_RP2040_CONNECT/mpconfigboard.h @@ -14,7 +14,7 @@ #define MICROPY_USE_INTERNAL_ERRNO (0) // Enable externally controlled pins. -#define MICROPY_HW_PIN_EXT_COUNT (5) +#define MICROPY_HW_PIN_EXT_COUNT (7) // Enable USB Mass Storage with FatFS filesystem. #define MICROPY_HW_USB_MSC (1) diff --git a/ports/rp2/boards/ARDUINO_NANO_RP2040_CONNECT/pins.csv b/ports/rp2/boards/ARDUINO_NANO_RP2040_CONNECT/pins.csv index b398c8ec94..1e42a4f8de 100644 --- a/ports/rp2/boards/ARDUINO_NANO_RP2040_CONNECT/pins.csv +++ b/ports/rp2/boards/ARDUINO_NANO_RP2040_CONNECT/pins.csv @@ -17,10 +17,12 @@ A0,GPIO26 A1,GPIO27 A2,GPIO28 A3,GPIO29 -A4,GPIO12 -A5,GPIO13 +SDA,GPIO12 +SCL,GPIO13 LEDR,EXT_GPIO0 LEDG,EXT_GPIO1 LEDB,EXT_GPIO2 -A6,EXT_GPIO3 -A7,EXT_GPIO4 +D18,EXT_GPIO3 +D19,EXT_GPIO4 +D20,EXT_GPIO5 +D21,EXT_GPIO6