Skip to content

Commit 9cbbcb8

Browse files
authored
Merge pull request #17 from arduino-libraries/fix-samd-compilation
Fix broken compilation due to name change of SPIClass within ArduinoCore-samd.
2 parents 920965a + 98cb376 commit 9cbbcb8

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)