Skip to content

Commit f07f483

Browse files
committed
Swaps D16/D17 in the pin description list so that they are correctly D16/D17
* Assign A1 to A1, instead of A0 in the SparkFun MicroMod
1 parent 5f1bc3c commit f07f483

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sparkfun/samd/variants/SparkFun_Qwiic_Micro/variant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ const PinDescription g_APinDescription[] =
5151

5252
// 16/17 - RX/TX
5353
// --------------------
54-
{ PORTA, 23, PIO_SERCOM, (PIN_ATTR_DIGITAL|PIN_ATTR_PWM|PIN_ATTR_TIMER), No_ADC_Channel, PWM4_CH1, TC4_CH1, EXTERNAL_INT_7 }, // RX/D17
5554
{ PORTA, 22, PIO_SERCOM, (PIN_ATTR_DIGITAL|PIN_ATTR_PWM|PIN_ATTR_TIMER), No_ADC_Channel, PWM4_CH0, TC4_CH0, EXTERNAL_INT_6 }, // TX/D16
55+
{ PORTA, 23, PIO_SERCOM, (PIN_ATTR_DIGITAL|PIN_ATTR_PWM|PIN_ATTR_TIMER), No_ADC_Channel, PWM4_CH1, TC4_CH1, EXTERNAL_INT_7 }, // RX/D17
5656

5757
// 18-21 - Flash SPI
5858
// --------------------

sparkfun/samd/variants/SparkFun_SAMD51_MicroMod/variant.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ extern "C"
141141
#define PIN_DAC0 PIN_A0
142142

143143
static const uint8_t A0 = PIN_A0;
144-
static const uint8_t A1 = PIN_A0;
144+
static const uint8_t A1 = PIN_A1;
145145
static const uint8_t A2 = PIN_A2;
146146
static const uint8_t A3 = PIN_A3;
147147
static const uint8_t A4 = PIN_A4;

0 commit comments

Comments
 (0)