add 40mhz (#347)

This commit is contained in:
Michael Miller
2020-04-03 01:10:55 -07:00
committed by GitHub
parent 65c5b4d186
commit a9a031f10e
2 changed files with 7 additions and 0 deletions

View File

@@ -124,6 +124,7 @@ typedef DotStarMethodBase<TwoWireBitBangImple> DotStarMethod;
#if !defined(__AVR_ATtiny85__) && !defined(ARDUINO_attiny)
#include "TwoWireSpiImple.h"
typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed40Mhz>> DotStarSpi40MhzMethod;
typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed20Mhz>> DotStarSpi20MhzMethod;
typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed10Mhz>> DotStarSpi10MhzMethod;
typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed2Mhz>> DotStarSpi2MhzMethod;

View File

@@ -28,6 +28,12 @@ License along with NeoPixel. If not, see
#include <SPI.h>
class SpiSpeed40Mhz
{
public:
static const uint32_t Clock = 40000000L;
};
class SpiSpeed20Mhz
{
public: