Skip to content

Commit ccd2ef9

Browse files
committed
I2C slave support for PyGamer Advance M4
1 parent 43e7bd8 commit ccd2ef9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

variants/pygamer_advance_m4/variant.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ static const uint8_t SCK1 = PIN_SPI1_SCK ;
176176
#define PIN_WIRE_SCL (27u)
177177
#define PERIPH_WIRE sercom2
178178
#define WIRE_IT_HANDLER SERCOM2_Handler
179+
#define WIRE_IT_HANDLER_0 SERCOM2_0_Handler
180+
#define WIRE_IT_HANDLER_1 SERCOM2_1_Handler
181+
#define WIRE_IT_HANDLER_2 SERCOM2_2_Handler
182+
#define WIRE_IT_HANDLER_3 SERCOM2_3_Handler
179183

180184
static const uint8_t SDA = PIN_WIRE_SDA;
181185
static const uint8_t SCL = PIN_WIRE_SCL;

0 commit comments

Comments
 (0)