DotStar NameCleanup (#674)

This commit is contained in:
Michael Miller
2023-04-03 16:48:08 -07:00
committed by GitHub
parent d283dcc9b2
commit 1c04fbcd5a
3 changed files with 35 additions and 35 deletions

View File

@@ -659,14 +659,14 @@ DotStarSpi2MhzMethod KEYWORD1
DotStarSpi1MhzMethod KEYWORD1 DotStarSpi1MhzMethod KEYWORD1
DotStarSpi500KhzMethod KEYWORD1 DotStarSpi500KhzMethod KEYWORD1
DotStarSpiHzMethod KEYWORD1 DotStarSpiHzMethod KEYWORD1
NeoWs2801Method KEYWORD1 Ws2801Method KEYWORD1
NeoWs2801SpiMethod KEYWORD1 Ws2801SpiMethod KEYWORD1
NeoWs2801Spi20MhzMethod KEYWORD1 Ws2801Spi20MhzMethod KEYWORD1
NeoWs2801Spi10MhzMethod KEYWORD1 Ws2801Spi10MhzMethod KEYWORD1
NeoWs2801Spi2MhzMethod KEYWORD1 Ws2801Spi2MhzMethod KEYWORD1
NeoWs2801Spi1MhzMethod KEYWORD1 Ws2801Spi1MhzMethod KEYWORD1
NeoWs2801Spi500KhzMethod KEYWORD1 Ws2801Spi500KhzMethod KEYWORD1
NeoWs2801SpiHzMethod KEYWORD1 Ws2801SpiHzMethod KEYWORD1
Lpd6803SpiMethod KEYWORD1 Lpd6803SpiMethod KEYWORD1
Lpd6803Method KEYWORD1 Lpd6803Method KEYWORD1
Lpd6803Spi20MhzMethod KEYWORD1 Lpd6803Spi20MhzMethod KEYWORD1

View File

@@ -151,26 +151,26 @@ typedef DotStarSpi10MhzMethod DotStarSpiMethod;
#if defined(ARDUINO_ARCH_ESP32) #if defined(ARDUINO_ARCH_ESP32)
// Give option to use Vspi alias of Spi class if wanting to specify which SPI peripheral is used on the ESP32 // Give option to use Vspi alias of Spi class if wanting to specify which SPI peripheral is used on the ESP32
typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed40Mhz>> DotStarVspi40MhzMethod; typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed40Mhz>> DotStarEsp32Vspi40MhzMethod;
typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed20Mhz>> DotStarVspi20MhzMethod; typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed20Mhz>> DotStarEsp32Vspi20MhzMethod;
typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed10Mhz>> DotStarVspi10MhzMethod; typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed10Mhz>> DotStarEsp32Vspi10MhzMethod;
typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed5Mhz>> DotStarVspi5MhzMethod; typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed5Mhz>> DotStarEsp32Vspi5MhzMethod;
typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed2Mhz>> DotStarVspi2MhzMethod; typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed2Mhz>> DotStarEsp32Vspi2MhzMethod;
typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed1Mhz>> DotStarVspi1MhzMethod; typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed1Mhz>> DotStarEsp32Vspi1MhzMethod;
typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed500Khz>> DotStarVspi500KhzMethod; typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeed500Khz>> DotStarEsp32Vspi500KhzMethod;
typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeedHz>> DotStarVspiHzMethod; typedef DotStarMethodBase<TwoWireSpiImple<SpiSpeedHz>> DotStarEsp32VspiHzMethod;
typedef DotStarSpi10MhzMethod DotStarVspiMethod; typedef DotStarSpi10MhzMethod DotStarEsp32VspiMethod;
#include "TwoWireHspiImple.h" #include "TwoWireHspiImple.h"
typedef DotStarMethodBase<TwoWireHspiImple<SpiSpeed40Mhz>> DotStarHspi40MhzMethod; typedef DotStarMethodBase<TwoWireHspiImple<SpiSpeed40Mhz>> DotStarEsp32Hspi40MhzMethod;
typedef DotStarMethodBase<TwoWireHspiImple<SpiSpeed20Mhz>> DotStarHspi20MhzMethod; typedef DotStarMethodBase<TwoWireHspiImple<SpiSpeed20Mhz>> DotStarEsp32Hspi20MhzMethod;
typedef DotStarMethodBase<TwoWireHspiImple<SpiSpeed10Mhz>> DotStarHspi10MhzMethod; typedef DotStarMethodBase<TwoWireHspiImple<SpiSpeed10Mhz>> DotStarEsp32Hspi10MhzMethod;
typedef DotStarMethodBase<TwoWireHspiImple<SpiSpeed5Mhz>> DotStarHspi5MhzMethod; typedef DotStarMethodBase<TwoWireHspiImple<SpiSpeed5Mhz>> DotStarEsp32Hspi5MhzMethod;
typedef DotStarMethodBase<TwoWireHspiImple<SpiSpeed2Mhz>> DotStarHspi2MhzMethod; typedef DotStarMethodBase<TwoWireHspiImple<SpiSpeed2Mhz>> DotStarEsp32Hspi2MhzMethod;
typedef DotStarMethodBase<TwoWireHspiImple<SpiSpeed1Mhz>> DotStarHspi1MhzMethod; typedef DotStarMethodBase<TwoWireHspiImple<SpiSpeed1Mhz>> DotStarEsp32Hspi1MhzMethod;
typedef DotStarMethodBase<TwoWireHspiImple<SpiSpeed500Khz>> DotStarHspi500KhzMethod; typedef DotStarMethodBase<TwoWireHspiImple<SpiSpeed500Khz>> DotStarEsp32Hspi500KhzMethod;
typedef DotStarMethodBase<TwoWireHspiImple<SpiSpeedHz>> DotStarHspiHzMethod; typedef DotStarMethodBase<TwoWireHspiImple<SpiSpeedHz>> DotStarEsp32HspiHzMethod;
typedef DotStarHspi10MhzMethod DotStarHspiMethod; typedef DotStarEsp32Hspi10MhzMethod DotStarEsp32HspiMethod;
#endif #endif

View File

@@ -131,20 +131,20 @@ private:
uint8_t* _data; // Holds LED color values uint8_t* _data; // Holds LED color values
}; };
typedef Ws2801MethodBase<TwoWireBitBangImple> NeoWs2801Method; typedef Ws2801MethodBase<TwoWireBitBangImple> Ws2801Method;
#if !defined(__AVR_ATtiny85__) && !defined(ARDUINO_attiny) #if !defined(__AVR_ATtiny85__) && !defined(ARDUINO_attiny)
#include "TwoWireSpiImple.h" #include "TwoWireSpiImple.h"
typedef Ws2801MethodBase<TwoWireSpiImple<SpiSpeed20Mhz>> NeoWs2801Spi20MhzMethod; typedef Ws2801MethodBase<TwoWireSpiImple<SpiSpeed20Mhz>> Ws2801Spi20MhzMethod;
typedef Ws2801MethodBase<TwoWireSpiImple<SpiSpeed10Mhz>> NeoWs2801Spi10MhzMethod; typedef Ws2801MethodBase<TwoWireSpiImple<SpiSpeed10Mhz>> Ws2801Spi10MhzMethod;
typedef Ws2801MethodBase<TwoWireSpiImple<SpiSpeed5Mhz>> NeoWs2801Spi5MhzMethod; typedef Ws2801MethodBase<TwoWireSpiImple<SpiSpeed5Mhz>> Ws2801Spi5MhzMethod;
typedef Ws2801MethodBase<TwoWireSpiImple<SpiSpeed2Mhz>> NeoWs2801Spi2MhzMethod; typedef Ws2801MethodBase<TwoWireSpiImple<SpiSpeed2Mhz>> Ws2801Spi2MhzMethod;
typedef Ws2801MethodBase<TwoWireSpiImple<SpiSpeed1Mhz>> NeoWs2801Spi1MhzMethod; typedef Ws2801MethodBase<TwoWireSpiImple<SpiSpeed1Mhz>> Ws2801Spi1MhzMethod;
typedef Ws2801MethodBase<TwoWireSpiImple<SpiSpeed500Khz>> NeoWs2801Spi500KhzMethod; typedef Ws2801MethodBase<TwoWireSpiImple<SpiSpeed500Khz>> Ws2801Spi500KhzMethod;
typedef Ws2801MethodBase<TwoWireSpiImple<SpiSpeedHz>> NeoWs2801SpiHzMethod; typedef Ws2801MethodBase<TwoWireSpiImple<SpiSpeedHz>> Ws2801SpiHzMethod;
typedef NeoWs2801Spi10MhzMethod NeoWs2801SpiMethod; typedef Ws2801Spi10MhzMethod Ws2801SpiMethod;
#endif #endif