diff options
author | Daniel Garcia <danielgarcia@gmail.com> | 2015-01-05 09:47:33 +0300 |
---|---|---|
committer | Daniel Garcia <danielgarcia@gmail.com> | 2015-01-05 09:47:33 +0300 |
commit | 781f2ba320b09cbc32b3ec19de7f4d7181561e78 (patch) | |
tree | 20c1fc849e0990f93a90faddc70fc7844d5b347e | |
parent | d861255d1b354a47e309993447c13408b0c26c9a (diff) |
Add WS2812 entries to the other half of chipsets.h
-rw-r--r-- | chipsets.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -526,6 +526,13 @@ class WS2811Controller800Khz : public ClocklessController<DATA_PIN, NS(320), NS( #warning "Not enough clock cycles available for the WS2811 (800khz)" #endif +// WS2812 - 250ns, 625ns, 375ns +template <uint8_t DATA_PIN, EOrder RGB_ORDER = RGB> +class WS2812Controller800Khz : public ClocklessController<DATA_PIN, NS(250), NS(625), NS(375), RGB_ORDER> {}; +#if NO_TIME(250, 625, 375) +#warning "Not enough clock cycles available for the WS2812 (800khz)" +#endif + // WS2811@400khz - 800ns, 800ns, 900ns template <uint8_t DATA_PIN, EOrder RGB_ORDER = RGB> class WS2811Controller400Khz : public ClocklessController<DATA_PIN, NS(800), NS(800), NS(900), RGB_ORDER> {}; |