Skip to content

Commit cd743f4

Browse files
committed
add I2C dummy
1 parent a996f53 commit cd743f4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

variants/catsniffer/variant.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,12 @@ static const uint8_t SCK = PIN_SPI_SCK ;
154154
/*
155155
* Wire Interfaces
156156
*/
157-
#define WIRE_INTERFACES_COUNT 0
157+
#define WIRE_INTERFACES_COUNT 1
158+
159+
#define PIN_WIRE_SDA -1
160+
#define PIN_WIRE_SCL -1
161+
#define PERIPH_WIRE sercom2
162+
//#define WIRE_IT_HANDLER // hack! we call the i2c handler from within the serial handler!
158163

159164
/*
160165
* USB

0 commit comments

Comments
 (0)