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-17 00:28:09 +0400
committerDaniel Garcia <danielgarcia@gmail.com>2014-03-17 00:28:09 +0400
commit1138f9611224ff6579e90264c0cf0e0d4feac3d5 (patch)
tree5debd13a19be39bd265a5148bf07ae0aac99df49 /clockless_trinket.h
parent3daf11b508da67a47c481623305f4e1194da257b (diff)
still unused code for ATTiny version of scale8, to get rid of calls to mul. Add ability to modify FastLED.h to disable color correction and/or dithering (with program space savings)
Diffstat (limited to 'clockless_trinket.h')
-rw-r--r--clockless_trinket.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/clockless_trinket.h b/clockless_trinket.h
index 83cd2e84..7d99cbd9 100644
--- a/clockless_trinket.h
+++ b/clockless_trinket.h
@@ -95,8 +95,10 @@ public:
showRGBInternal(pixels);
// Adjust the timer
+#if !defined(NO_CORRECTION) || (NO_CORRECTION == 0)
uint16_t microsTaken = nLeds * CLKS_TO_MICROS(24 * (T1 + T2 + T3));
MS_COUNTER += (microsTaken >> 10);
+#endif
sei();
mWait.mark();
}