Skip to content

Commit 94786e9

Browse files
committed
update for rev F - we'll manually config i2s since we dont need an fs pin
1 parent 858d176 commit 94786e9

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

variants/circuitplay/variant.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ const PinDescription g_APinDescription[]=
159159
{ PORTA, 24, PIO_COM, PIN_ATTR_NONE, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE }, // USB/DM
160160
{ PORTA, 25, PIO_COM, PIN_ATTR_NONE, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE }, // USB/DP
161161

162-
// GPIO 29 / Capacitive push
162+
// GPIO 29 / IR Transmit
163163
{ PORTA, 23, PIO_DIGITAL, PIN_ATTR_DIGITAL, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_7 },
164164

165165
// GPIO 30 31 internal I2C (original xtal pins)
@@ -182,6 +182,8 @@ const PinDescription g_APinDescription[]=
182182
// GPIO 38 (I2S Datain)
183183
{ PORTA, 8, PIO_DIGITAL, (PIN_ATTR_DIGITAL|PIN_ATTR_PWM|PIN_ATTR_TIMER|PIN_ATTR_ANALOG), ADC_Channel16, PWM0_CH0, TCC0_CH0, EXTERNAL_INT_NMI }, // ADC/AIN[3] / Microphone
184184

185+
// GPIO 39 (IR Remote in)
186+
{ PORTA, 12, PIO_DIGITAL, PIN_ATTR_DIGITAL, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_12 }, // IR remote input in
185187

186188

187189
// 26..27

variants/circuitplay/variant.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,15 @@
6565

6666
// LEDs
6767
// ----
68-
#define PIN_LED (13u)
68+
#define PIN_LED_13 (13u)
69+
#define PIN_LED PIN_LED_13
6970
#define LED_BUILTIN PIN_LED
7071

7172

7273
//#define PIN_LED_RXL (25u)
7374
//#define PIN_LED_TXL (26u)
74-
#define PIN_LED PIN_LED_13
7575
//#define PIN_LED2 PIN_LED_RXL
7676
//#define PIN_LED3 PIN_LED_TXL
77-
#define LED_BUILTIN PIN_LED_13
7877

7978
/*
8079
* Analog pins
@@ -158,7 +157,7 @@ static const uint8_t SCL1 = PIN_WIRE1_SCL;
158157

159158
// I2S Interfaces
160159
// --------------
161-
#define I2S_INTERFACES_COUNT 1
160+
#define I2S_INTERFACES_COUNT 0
162161

163162
#define I2S_DEVICE 0
164163
#define I2S_CLOCK_GENERATOR 3

0 commit comments

Comments
 (0)