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>2014-03-16 13:43:30 +0400
committerDaniel Garcia <danielgarcia@gmail.com>2014-03-16 13:43:30 +0400
commit4c8c94514f46d9cf944d6bec8d64180ae02b5d38 (patch)
treefe3565442b8758b4d5d08a46126c0aeb3badbd3c /clockless2.h
parent4f74b580304eb04b007a22457b4981360d620f5e (diff)
* Move controller linkage to linked list, get rid of constant array of controllers
* Perform memory usage trimming on avr code and code across the board * Tweak template instantiations for clockless chipsets to get rid of spurious globals that were never being used.
Diffstat (limited to 'clockless2.h')
-rw-r--r--clockless2.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/clockless2.h b/clockless2.h
index 68e6477a..c48cde5d 100644
--- a/clockless2.h
+++ b/clockless2.h
@@ -48,7 +48,7 @@ public:
showRGBInternal<0, false>(nLeds, scale, (const byte*)&data, (const byte*)&data);
// Adjust the timer
- long microsTaken = CLKS_TO_MICROS(nLeds * 8 * (T1 + T2 + T3));
+ long microsTaken = nLeds * CLKS_TO_MICROS(24 * (T1 + T2 + T3));
MS_COUNTER += (microsTaken / 1000);
sei();
mWait.mark();
@@ -61,7 +61,7 @@ public:
showRGBInternal<0, true>(nLeds, scale, (const byte*)rgbdata, (const byte*)rgbdata);
// Adjust the timer
- long microsTaken = CLKS_TO_MICROS(nLeds * 8 * (T1 + T2 + T3));
+ long microsTaken = nLeds * CLKS_TO_MICROS(24 * (T1 + T2 + T3));
MS_COUNTER += (microsTaken / 1000);
sei();
mWait.mark();
@@ -74,7 +74,7 @@ public:
showRGBInternal<0, true>(nLeds, scale, (const byte*)rgbdata, (const byte*)rgbdata2 );
// Adjust the timer
- long microsTaken = CLKS_TO_MICROS(nLeds * 8 * (T1 + T2 + T3));
+ long microsTaken = nLeds * CLKS_TO_MICROS(24 * (T1 + T2 + T3));
MS_COUNTER += (microsTaken / 1000);
sei();
mWait.mark();
@@ -88,7 +88,7 @@ public:
showRGBInternal<1, true>(nLeds, scale, (const byte*)rgbdata);
// Adjust the timer
- long microsTaken = CLKS_TO_MICROS(nLeds * 8 * (T1 + T2 + T3));
+ long microsTaken = nLeds * CLKS_TO_MICROS(24 * (T1 + T2 + T3));
MS_COUNTER += (microsTaken / 1000);
sei();
mWait.mark();