Skip to content

Commit 63e948a

Browse files
author
ladyada
committed
rearrange pins so LIS IRQ is on D27
1 parent 5151d5f commit 63e948a

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed

variants/circuitplayground_nrf52840/variant.cpp

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,22 @@ const uint32_t g_ADigitalPinMap[] =
5353
28, // A8 - Light sensor
5454
31, // A9 - Thermistor sensor
5555

56-
45, // D24 is P1.13 (LIS IRQ)
57-
44, // D25 is P1.12 (LIS SCL)
58-
42, // D26 is P1.10 (LIS SDA)
56+
// D24 & D25 PDM pins
57+
16, // D24 is P0.16 (PDM DAT)
58+
17, // D25 is P0.17 (PDM CLK)
59+
60+
44, // D26 is P1.12 (LIS SCL)
61+
45, // D27 is P1.13 (LIS IRQ)
62+
42, // D28 is P1.10 (LIS SDA)
5963

6064
// QSPI pins (not exposed via any header / test point)
61-
19, // D27 is P0.19 (QSPI CLK)
62-
15, // D28 is P0.15 (QSPI CS)
63-
21, // D29 is P0.21 (QSPI Data 0)
64-
23, // D30 is P0.23 (QSPI Data 1)
65-
32, // D31 is P1.00 (QSPI Data 2)
66-
22, // D32 is P0.22 (QSPI Data 3)
65+
19, // D29 is P0.19 (QSPI CLK)
66+
15, // D30 is P0.15 (QSPI CS)
67+
21, // D31 is P0.21 (QSPI Data 0)
68+
23, // D32 is P0.23 (QSPI Data 1)
69+
32, // D33 is P1.00 (QSPI Data 2)
70+
22, // D34 is P0.22 (QSPI Data 3)
6771

68-
// D33 & D34 PDM pins
69-
16, // D33 is P0.16 (PDM DAT)
70-
17, // D34 is P0.17 (PDM CLK)
7172

7273
};
7374

variants/circuitplayground_nrf52840/variant.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ extern "C"
5858
#define PIN_BUTTON2 (5)
5959

6060
// Microphone
61-
#define PIN_PDM_DIN 33
62-
#define PIN_PDM_CLK 34
61+
#define PIN_PDM_DIN 24
62+
#define PIN_PDM_CLK 25
6363
#define PIN_PDM_PWR -1 // not used
6464

6565
/*
@@ -114,16 +114,16 @@ static const uint8_t SCK = PIN_SPI_SCK ;
114114
*/
115115
#define WIRE_INTERFACES_COUNT 1
116116

117-
#define PIN_WIRE_SDA (26)
118-
#define PIN_WIRE_SCL (25)
117+
#define PIN_WIRE_SDA (28)
118+
#define PIN_WIRE_SCL (26)
119119

120120
// QSPI Pins
121-
#define PIN_QSPI_SCK 27
122-
#define PIN_QSPI_CS 28
123-
#define PIN_QSPI_IO0 29
124-
#define PIN_QSPI_IO1 30
125-
#define PIN_QSPI_IO2 31
126-
#define PIN_QSPI_IO3 32
121+
#define PIN_QSPI_SCK 29
122+
#define PIN_QSPI_CS 30
123+
#define PIN_QSPI_IO0 31
124+
#define PIN_QSPI_IO1 32
125+
#define PIN_QSPI_IO2 33
126+
#define PIN_QSPI_IO3 34
127127

128128
// On-board QSPI Flash
129129
#define EXTERNAL_FLASH_DEVICES GD25Q16C

0 commit comments

Comments
 (0)