We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6b8287e + 8fe18d6 commit a65dbdbCopy full SHA for a65dbdb
Adafruit_DotStar.h
@@ -101,7 +101,9 @@ static const uint8_t PROGMEM _DotStarGammaTable[256] = {
101
class Adafruit_DotStar {
102
103
public:
104
-#if defined SPI // Is a default hardware SPI device defined for this board?
+#if !defined(SPI_INTERFACES_COUNT) || \
105
+ (defined(SPI_INTERFACES_COUNT) && (SPI_INTERFACES_COUNT > 0))
106
+ // HW SPI available
107
Adafruit_DotStar(uint16_t n, uint8_t o = DOTSTAR_BRG, SPIClass *spi = &SPI);
108
#else
109
Adafruit_DotStar(uint16_t n, uint8_t o = DOTSTAR_BRG, SPIClass *spi = NULL);
0 commit comments