Skip to content

Commit 98cb376

Browse files
committed
Fix broken compilation due to name change of SPIClass within ArduinoCore-samd.
See arduino/ArduinoCore-samd@000db0c.
1 parent 920965a commit 98cb376

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MKRRGBMatrix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#include "MKRRGBMatrix.h"
2424

25-
static SPIClass SPI_MATRIX(&sercom0, A3, A4, A3, SPI_PAD_0_SCK_1, SERCOM_RX_PAD_0);
25+
static SPIClassSAMD SPI_MATRIX(&sercom0, A3, A4, A3, SPI_PAD_0_SCK_1, SERCOM_RX_PAD_0);
2626

2727
// This table is based on the formula: gamma = (int)(pow(i / 255.0, gamma) * 255 + offset)
2828
// where gamma = 2.5 and offset is 0.5

0 commit comments

Comments
 (0)