diff --git a/variants/circuitplayground_nrf52840/variant.cpp b/variants/circuitplayground_nrf52840/variant.cpp index 8e5bb9fd..fbb44b02 100644 --- a/variants/circuitplayground_nrf52840/variant.cpp +++ b/variants/circuitplayground_nrf52840/variant.cpp @@ -53,21 +53,22 @@ const uint32_t g_ADigitalPinMap[] = 28, // A8 - Light sensor 31, // A9 - Thermistor sensor - 45, // D24 is P1.13 (LIS IRQ) - 44, // D25 is P1.12 (LIS SCL) - 42, // D26 is P1.10 (LIS SDA) + // D24 & D25 PDM pins + 16, // D24 is P0.16 (PDM DAT) + 17, // D25 is P0.17 (PDM CLK) + + 44, // D26 is P1.12 (LIS SCL) + 45, // D27 is P1.13 (LIS IRQ) + 42, // D28 is P1.10 (LIS SDA) // QSPI pins (not exposed via any header / test point) - 19, // D27 is P0.19 (QSPI CLK) - 15, // D28 is P0.15 (QSPI CS) - 21, // D29 is P0.21 (QSPI Data 0) - 23, // D30 is P0.23 (QSPI Data 1) - 32, // D31 is P1.00 (QSPI Data 2) - 22, // D32 is P0.22 (QSPI Data 3) + 19, // D29 is P0.19 (QSPI CLK) + 15, // D30 is P0.15 (QSPI CS) + 21, // D31 is P0.21 (QSPI Data 0) + 23, // D32 is P0.23 (QSPI Data 1) + 32, // D33 is P1.00 (QSPI Data 2) + 22, // D34 is P0.22 (QSPI Data 3) - // D33 & D34 PDM pins - 16, // D33 is P0.16 (PDM DAT) - 17, // D34 is P0.17 (PDM CLK) }; diff --git a/variants/circuitplayground_nrf52840/variant.h b/variants/circuitplayground_nrf52840/variant.h index b498b8ca..da6c7ad0 100644 --- a/variants/circuitplayground_nrf52840/variant.h +++ b/variants/circuitplayground_nrf52840/variant.h @@ -58,8 +58,8 @@ extern "C" #define PIN_BUTTON2 (5) // Microphone -#define PIN_PDM_DIN 33 -#define PIN_PDM_CLK 34 +#define PIN_PDM_DIN 24 +#define PIN_PDM_CLK 25 #define PIN_PDM_PWR -1 // not used /* @@ -114,16 +114,16 @@ static const uint8_t SCK = PIN_SPI_SCK ; */ #define WIRE_INTERFACES_COUNT 1 -#define PIN_WIRE_SDA (26) -#define PIN_WIRE_SCL (25) +#define PIN_WIRE_SDA (28) +#define PIN_WIRE_SCL (26) // QSPI Pins -#define PIN_QSPI_SCK 27 -#define PIN_QSPI_CS 28 -#define PIN_QSPI_IO0 29 -#define PIN_QSPI_IO1 30 -#define PIN_QSPI_IO2 31 -#define PIN_QSPI_IO3 32 +#define PIN_QSPI_SCK 29 +#define PIN_QSPI_CS 30 +#define PIN_QSPI_IO0 31 +#define PIN_QSPI_IO1 32 +#define PIN_QSPI_IO2 33 +#define PIN_QSPI_IO3 34 // On-board QSPI Flash #define EXTERNAL_FLASH_DEVICES GD25Q16C