diff options
author | Daniel Garcia <danielgarcia@gmail.com> | 2015-02-07 23:55:40 +0300 |
---|---|---|
committer | Daniel Garcia <danielgarcia@gmail.com> | 2015-02-07 23:55:40 +0300 |
commit | 23d79916dbd18a4fa2073123333a8987f75c7376 (patch) | |
tree | cac506efd05c122434a7be8f7cb8c568abc18341 /chipsets.h | |
parent | f6c91d3687c80be94ecc81430b4b3d5288f4156b (diff) |
Making clockless code compile in conditionally.
Diffstat (limited to 'chipsets.h')
-rw-r--r-- | chipsets.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |