Merge pull request #1479 from KhanKudo/DP1903_branch
added support for DP1903
This commit is contained in:
commit
dbb8b8f533
@ -49,6 +49,7 @@ Here's a list of all the LED chipsets are supported. More details on the LED ch
|
||||
* TM1809/4 - 3 wire chipset, cheaply available on aliexpress.com
|
||||
* TM1803 - 3 wire chipset, sold by RadioShack
|
||||
* UCS1903 - another 3 wire LED chipset, cheap
|
||||
* DP1903 - another 3 wire LED chipset, cheap
|
||||
* GW6205 - another 3 wire LED chipset
|
||||
* LPD8806 - SPI based chipset, very high speed
|
||||
* WS2801 - SPI based chipset, cheap and widely available
|
||||
|
@ -395,6 +395,8 @@ UCS1903 LITERAL1
|
||||
UCS1903B LITERAL1
|
||||
UCS1904 LITERAL1
|
||||
UCS2903 LITERAL1
|
||||
DP1903 LITERAL1
|
||||
DP1903_400 LITERAL1
|
||||
WS2801 LITERAL1
|
||||
WS2803 LITERAL1
|
||||
WS2811 LITERAL1
|
||||
|
@ -135,6 +135,8 @@ template<uint8_t DATA_PIN, EOrder RGB_ORDER> class SK6812 : public SK6812Control
|
||||
template<uint8_t DATA_PIN, EOrder RGB_ORDER> class SK6822 : public SK6822Controller<DATA_PIN, RGB_ORDER> {}; ///< SK6822 controller class. @copydetails SK6822Controller
|
||||
template<uint8_t DATA_PIN, EOrder RGB_ORDER> class APA106 : public SK6822Controller<DATA_PIN, RGB_ORDER> {}; ///< APA106 controller class. @copydetails SK6822Controller
|
||||
template<uint8_t DATA_PIN, EOrder RGB_ORDER> class PL9823 : public PL9823Controller<DATA_PIN, RGB_ORDER> {}; ///< @copydoc PL9823Controller
|
||||
template<uint8_t DATA_PIN, EOrder RGB_ORDER> class DP1903 : public DP1903Controller800Khz<DATA_PIN, RGB_ORDER> {}; ///< @copydoc DP1903Controller800Khz
|
||||
template<uint8_t DATA_PIN, EOrder RGB_ORDER> class DP1903_400 : public DP1903Controller400Khz<DATA_PIN, RGB_ORDER> {}; ///< @copydoc DP1903Controller400Khz
|
||||
template<uint8_t DATA_PIN, EOrder RGB_ORDER> class WS2811 : public WS2811Controller800Khz<DATA_PIN, RGB_ORDER> {}; ///< @copydoc WS2811Controller800Khz
|
||||
template<uint8_t DATA_PIN, EOrder RGB_ORDER> class WS2813 : public WS2813Controller<DATA_PIN, RGB_ORDER> {}; ///< @copydoc WS2813Controller
|
||||
template<uint8_t DATA_PIN, EOrder RGB_ORDER> class APA104 : public WS2811Controller800Khz<DATA_PIN, RGB_ORDER> {}; ///< APA104 controller class. @copydetails WS2811Controller800Khz
|
||||
@ -246,7 +248,7 @@ public:
|
||||
/// @name Adding SPI-based controllers
|
||||
/// Add an SPI based CLEDController instance to the world.
|
||||
///
|
||||
/// There are two ways to call this method (as well as the other addLeds()
|
||||
/// There are two ways to call this method (as well as the other addLeds()
|
||||
/// variations). The first is with 2 arguments, in which case the arguments are a pointer to
|
||||
/// led data, and the number of leds used by this controller. The second is with 3 arguments, in which case
|
||||
/// the first argument is the same, the second argument is an offset into the CRGB data where this controller's
|
||||
@ -590,7 +592,7 @@ public:
|
||||
void showColor(const struct CRGB & color) { showColor(color, m_Scale); }
|
||||
|
||||
/// Delay for the given number of milliseconds. Provided to allow the library to be used on platforms
|
||||
/// that don't have a delay function (to allow code to be more portable).
|
||||
/// that don't have a delay function (to allow code to be more portable).
|
||||
/// @note This will call show() constantly to drive the dithering engine (and will call show() at least once).
|
||||
/// @param ms the number of milliseconds to pause for
|
||||
void delay(unsigned long ms);
|
||||
|
@ -452,7 +452,7 @@ protected:
|
||||
|
||||
#ifdef FASTLED_HAS_CLOCKLESS
|
||||
/// @defgroup ClocklessChipsets Clockless Chipsets
|
||||
/// These chipsets have only a single data line.
|
||||
/// These chipsets have only a single data line.
|
||||
///
|
||||
/// The clockless chipset controllers use the same base class
|
||||
/// and the same protocol, but with varying timing periods.
|
||||
@ -465,7 +465,7 @@ protected:
|
||||
/// At T=T1+T2+T3 : the cycle is concluded (next bit can be sent)
|
||||
/// @endcode
|
||||
///
|
||||
/// The units used for T1, T2, and T3 is nanoseconds.
|
||||
/// The units used for T1, T2, and T3 is nanoseconds.
|
||||
///
|
||||
/// For 8MHz/16MHz/24MHz frequencies, these values are also guaranteed
|
||||
/// to be integral multiples of an 8MHz clock (125ns increments).
|
||||
@ -631,6 +631,14 @@ class UCS2903Controller : public ClocklessController<DATA_PIN, C_NS(250), C_NS(7
|
||||
template <uint8_t DATA_PIN, EOrder RGB_ORDER = RGB>
|
||||
class TM1809Controller800Khz : public ClocklessController<DATA_PIN, C_NS(350), C_NS(350), C_NS(450), RGB_ORDER> {};
|
||||
|
||||
// DP1903 - 250ns, 1000ns, 250ns
|
||||
template <uint8_t DATA_PIN, EOrder RGB_ORDER = RGB>
|
||||
class DP1903Controller800Khz : public ClocklessController<DATA_PIN, C_NS(250), C_NS(1000), C_NS(250), RGB_ORDER> {};
|
||||
|
||||
// DP1903@400khz - 500ns, 2000ns, 500ns
|
||||
template <uint8_t DATA_PIN, EOrder RGB_ORDER = RGB>
|
||||
class DP1903Controller400Khz : public ClocklessController<DATA_PIN, C_NS(500), C_NS(2000), C_NS(500), RGB_ORDER> {};
|
||||
|
||||
// WS2811 - 320ns, 320ns, 640ns
|
||||
template <uint8_t DATA_PIN, EOrder RGB_ORDER = RGB>
|
||||
class WS2811Controller800Khz : public ClocklessController<DATA_PIN, C_NS(320), C_NS(320), C_NS(640), RGB_ORDER> {};
|
||||
|
Loading…
Reference in New Issue
Block a user