SPI Hardware Not on AtTiny (#320)

This commit is contained in:
Michael Miller authored and GitHub committed 2019-12-20 23:48:00 -08:00
1 parent 4b027db5cd
commit e0782bb88b
4 files changed
+9 -4

No files matched your search

+3 -1
View File
@@ -46,10 +46,12 @@ public:
memset(_pixels, 0, _sizePixels);
}
#if !defined(__AVR_ATtiny85__) && !defined(ARDUINO_attiny)
DotStarMethodBase(uint16_t pixelCount, size_t elementSize) :
DotStarMethodBase(SCK, MOSI, pixelCount, elementSize)
{
}
#endif
~DotStarMethodBase()
{
@@ -115,7 +117,7 @@ private:
typedef DotStarMethodBase<TwoWireBitBangImple> DotStarMethod;
#if !defined(__AVR_ATtiny85__)
#if !defined(__AVR_ATtiny85__) && !defined(ARDUINO_attiny)
#include "TwoWireSpiImple.h"
typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed20Mhz>> DotStarSpi20MhzMethod;
typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed10Mhz>> DotStarSpi10MhzMethod;