Skip to content

Commit 8d91cbb

Browse files
authored
corrects A3 from pin 3 to pin 18(C18), adds A7 as pin 16(C16), updates comment (#521)
1 parent 1ce2a08 commit 8d91cbb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

variants/CalliopeminiV3/variant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const uint32_t g_ADigitalPinMap[] = {
2727
17, // SCK
2828
1, // MISO
2929
13, // MOSI
30-
29, // A5, C16_A1RX (Calliope change)
30+
29, // A7, C16_A1RX (Calliope change)
3131

3232
// 17 + 18
3333
34, // P1.02 C17 (Calliope exclusive pin)

variants/CalliopeminiV3/variant.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@ extern "C"
3434
#define PIN_A0 (0)
3535
#define PIN_A1 (1)
3636
#define PIN_A2 (2)
37-
#define PIN_A3 (3)
37+
#define PIN_A3 (18)
3838
#define PIN_A4 (4)
3939
#define PIN_A5 (10)
4040
#define PIN_A6 (29)
41+
#define PIN_A7 (16)
4142

4243
#define ADC_RESOLUTION 10
4344
static const uint8_t A0 = PIN_A0;
@@ -47,6 +48,7 @@ static const uint8_t A3 = PIN_A3;
4748
static const uint8_t A4 = PIN_A4;
4849
static const uint8_t A5 = PIN_A5;
4950
static const uint8_t A6 = PIN_A6;
51+
static const uint8_t A7 = PIN_A7;
5052

5153
// Serial
5254

0 commit comments

Comments
 (0)