Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Garcia <danielgarcia@gmail.com>2015-01-05 09:47:33 +0300
committerDaniel Garcia <danielgarcia@gmail.com>2015-01-05 09:47:33 +0300
commit781f2ba320b09cbc32b3ec19de7f4d7181561e78 (patch)
tree20c1fc849e0990f93a90faddc70fc7844d5b347e
parentd861255d1b354a47e309993447c13408b0c26c9a (diff)
Add WS2812 entries to the other half of chipsets.h
-rw-r--r--chipsets.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chipsets.h b/chipsets.h
index 767664f1..95bd1d1c 100644
--- a/chipsets.h
+++ b/chipsets.h
@@ -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> {};