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-02-07 23:55:40 +0300
committerDaniel Garcia <danielgarcia@gmail.com>2015-02-07 23:55:40 +0300
commit23d79916dbd18a4fa2073123333a8987f75c7376 (patch)
treecac506efd05c122434a7be8f7cb8c568abc18341 /chipsets.h
parentf6c91d3687c80be94ecc81430b4b3d5288f4156b (diff)
Making clockless code compile in conditionally.
Diffstat (limited to 'chipsets.h')
-rw-r--r--chipsets.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/chipsets.h b/chipsets.h
index ed98c835..52a22055 100644
--- a/chipsets.h
+++ b/chipsets.h
@@ -240,7 +240,7 @@ protected:
mSPI.select();
startBoundary();
- for(int i = 0; i < nLeds; i++) {
+ for(int i = 0; i < nLeds; i++) {
writeLed(pixels.loadAndScale0(), pixels.loadAndScale1(), pixels.loadAndScale2());
pixels.stepDithering();
}
@@ -444,6 +444,7 @@ protected:
//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+#ifdef FASTLED_HAS_CLOCKLESS
// We want to force all avr's to use the Trinket controller when running at 8Mhz, because even the 328's at 8Mhz
// need the more tightly defined timeframes.
#if (F_CPU == 8000000 || F_CPU == 16000000 || F_CPU == 24000000) // || F_CPU == 48000000 || F_CPU == 96000000) // 125ns/clock
@@ -575,3 +576,5 @@ class LPD1886Controller1250Khz : public ClocklessController<DATA_PIN, NS(200), N
#endif
#endif
+
+#endif