Skip to content

Commit dc0adae

Browse files
committed
SPI isnt working yet but like, yknow
1 parent 7ae624f commit dc0adae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

variants/trinket_m0/variant.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static const uint8_t ATN = PIN_ATN;
132132
#define PIN_SPI_MISO (3u) // PA09
133133
#define PIN_SPI_MOSI (1u) // PA10
134134
#define PIN_SPI_SCK (0u) // PA11
135-
#define PERIPH_SPI sercom3
135+
#define PERIPH_SPI sercom2
136136
#define PAD_SPI_TX SPI_PAD_2_SCK_3
137137
#define PAD_SPI_RX SERCOM_RX_PAD_1
138138

@@ -151,7 +151,6 @@ static const uint8_t SCK = PIN_SPI_SCK ;
151151
#define PERIPH_WIRE sercom2
152152
#define WIRE_IT_HANDLER SERCOM2_Handler
153153

154-
155154
static const uint8_t SDA = PIN_WIRE_SDA;
156155
static const uint8_t SCL = PIN_WIRE_SCL;
157156

0 commit comments

Comments
 (0)