forked from Makuna/NeoPixelBus
SPI Hardware Not on AtTiny (#320)
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Makuna/NeoPixelBus"
|
"url": "https://github.com/Makuna/NeoPixelBus"
|
||||||
},
|
},
|
||||||
"version": "2.5.4",
|
"version": "2.5.5",
|
||||||
"frameworks": "arduino",
|
"frameworks": "arduino",
|
||||||
"platforms": "*"
|
"platforms": "*"
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
name=NeoPixelBus by Makuna
|
name=NeoPixelBus by Makuna
|
||||||
version=2.5.4
|
version=2.5.5
|
||||||
author=Michael C. Miller (makuna@live.com)
|
author=Michael C. Miller (makuna@live.com)
|
||||||
maintainer=Michael C. Miller (makuna@live.com)
|
maintainer=Michael C. Miller (makuna@live.com)
|
||||||
sentence=A library that makes controlling NeoPixels (APA106, WS2811, WS2812, WS2813 & SK6812) and DotStars (APA102, LPD8806, SK9822) easy.
|
sentence=A library that makes controlling NeoPixels (APA106, WS2811, WS2812, WS2813 & SK6812) and DotStars (APA102, LPD8806, SK9822) easy.
|
||||||
|
@@ -46,10 +46,12 @@ public:
|
|||||||
memset(_pixels, 0, _sizePixels);
|
memset(_pixels, 0, _sizePixels);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(__AVR_ATtiny85__) && !defined(ARDUINO_attiny)
|
||||||
DotStarMethodBase(uint16_t pixelCount, size_t elementSize) :
|
DotStarMethodBase(uint16_t pixelCount, size_t elementSize) :
|
||||||
DotStarMethodBase(SCK, MOSI, pixelCount, elementSize)
|
DotStarMethodBase(SCK, MOSI, pixelCount, elementSize)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
~DotStarMethodBase()
|
~DotStarMethodBase()
|
||||||
{
|
{
|
||||||
@@ -115,7 +117,7 @@ private:
|
|||||||
|
|
||||||
typedef DotStarMethodBase<TwoWireBitBangImple> DotStarMethod;
|
typedef DotStarMethodBase<TwoWireBitBangImple> DotStarMethod;
|
||||||
|
|
||||||
#if !defined(__AVR_ATtiny85__)
|
#if !defined(__AVR_ATtiny85__) && !defined(ARDUINO_attiny)
|
||||||
#include "TwoWireSpiImple.h"
|
#include "TwoWireSpiImple.h"
|
||||||
typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed20Mhz>> DotStarSpi20MhzMethod;
|
typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed20Mhz>> DotStarSpi20MhzMethod;
|
||||||
typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed10Mhz>> DotStarSpi10MhzMethod;
|
typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed10Mhz>> DotStarSpi10MhzMethod;
|
||||||
|
@@ -46,10 +46,13 @@ public:
|
|||||||
memset(_pixels, 0, _sizePixels);
|
memset(_pixels, 0, _sizePixels);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(__AVR_ATtiny85__) && !defined(ARDUINO_attiny)
|
||||||
Lpd8806MethodBase(uint16_t pixelCount, size_t elementSize) :
|
Lpd8806MethodBase(uint16_t pixelCount, size_t elementSize) :
|
||||||
Lpd8806MethodBase(SCK, MOSI, pixelCount, elementSize)
|
Lpd8806MethodBase(SCK, MOSI, pixelCount, elementSize)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
~Lpd8806MethodBase()
|
~Lpd8806MethodBase()
|
||||||
{
|
{
|
||||||
@@ -115,7 +118,7 @@ private:
|
|||||||
|
|
||||||
typedef Lpd8806MethodBase<TwoWireBitBangImple> Lpd8806Method;
|
typedef Lpd8806MethodBase<TwoWireBitBangImple> Lpd8806Method;
|
||||||
|
|
||||||
#if !defined(__AVR_ATtiny85__)
|
#if !defined(__AVR_ATtiny85__) && !defined(ARDUINO_attiny)
|
||||||
#include "TwoWireSpiImple.h"
|
#include "TwoWireSpiImple.h"
|
||||||
typedef Lpd8806MethodBase<TwoWireSpiImple<SpiSpeed20Mhz>> Lpd8806Spi20MhzMethod;
|
typedef Lpd8806MethodBase<TwoWireSpiImple<SpiSpeed20Mhz>> Lpd8806Spi20MhzMethod;
|
||||||
typedef Lpd8806MethodBase<TwoWireSpiImple<SpiSpeed10Mhz>> Lpd8806Spi10MhzMethod;
|
typedef Lpd8806MethodBase<TwoWireSpiImple<SpiSpeed10Mhz>> Lpd8806Spi10MhzMethod;
|
||||||
|
Reference in New Issue
Block a user