forked from Makuna/NeoPixelBus
add 40mhz (#347)
This commit is contained in:
@@ -124,6 +124,7 @@ typedef DotStarMethodBase<TwoWireBitBangImple> DotStarMethod;
|
|||||||
|
|
||||||
#if !defined(__AVR_ATtiny85__) && !defined(ARDUINO_attiny)
|
#if !defined(__AVR_ATtiny85__) && !defined(ARDUINO_attiny)
|
||||||
#include "TwoWireSpiImple.h"
|
#include "TwoWireSpiImple.h"
|
||||||
|
typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed40Mhz>> DotStarSpi40MhzMethod;
|
||||||
typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed20Mhz>> DotStarSpi20MhzMethod;
|
typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed20Mhz>> DotStarSpi20MhzMethod;
|
||||||
typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed10Mhz>> DotStarSpi10MhzMethod;
|
typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed10Mhz>> DotStarSpi10MhzMethod;
|
||||||
typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed2Mhz>> DotStarSpi2MhzMethod;
|
typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed2Mhz>> DotStarSpi2MhzMethod;
|
||||||
|
@@ -28,6 +28,12 @@ License along with NeoPixel. If not, see
|
|||||||
|
|
||||||
#include <SPI.h>
|
#include <SPI.h>
|
||||||
|
|
||||||
|
class SpiSpeed40Mhz
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
static const uint32_t Clock = 40000000L;
|
||||||
|
};
|
||||||
|
|
||||||
class SpiSpeed20Mhz
|
class SpiSpeed20Mhz
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
Reference in New Issue
Block a user