Skip to content

Commit 644b147

Browse files
committed
fix mic pins
1 parent 37d51b6 commit 644b147

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

variants/trellis_m4/variant.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ const PinDescription g_APinDescription[]=
8181
// --------------------
8282
{ PORTA, 2, PIO_ANALOG, PIN_ATTR_ANALOG, ADC_Channel0, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_2 }, // A0
8383
{ PORTA, 5, PIO_ANALOG, PIN_ATTR_ANALOG, ADC_Channel5, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_5 }, // A1
84-
{ PORTA, 6, PIO_ANALOG, PIN_ATTR_ANALOG, ADC_Channel4, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_4 }, // Amp'd Mic
85-
{ PORTA, 7, PIO_ANALOG, PIN_ATTR_ANALOG, ADC_Channel6, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_6 }, // Raw Mic
84+
{ PORTA, 6, PIO_ANALOG, PIN_ATTR_ANALOG, ADC_Channel6, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_4 }, // Amp'd Mic
85+
{ PORTA, 7, PIO_ANALOG, PIN_ATTR_ANALOG, ADC_Channel7, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_6 }, // Raw Mic
8686
{ PORTB, 8, PIO_ANALOG, PIN_ATTR_ANALOG, ADC_Channel2, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_8 }, // SDA
8787
{ PORTB, 9, PIO_ANALOG, PIN_ATTR_ANALOG, ADC_Channel3, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_9 }, // SCL
8888

variants/trellis_m4/variant.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ extern "C"
9797

9898
#define PIN_DAC0 PIN_A0
9999
#define PIN_DAC1 PIN_A1
100-
#define PIN_MIC_RAW PIN_A2
101-
#define PIN_MIC PIN_A3
100+
#define PIN_MIC PIN_A2
101+
#define PIN_MIC_RAW PIN_A3
102102

103103
static const uint8_t A0 = PIN_A0;
104104
static const uint8_t A1 = PIN_A1;

0 commit comments

Comments
 (0)