diff options
author | Daniel Garcia <danielgarcia@gmail.com> | 2014-03-17 00:28:09 +0400 |
---|---|---|
committer | Daniel Garcia <danielgarcia@gmail.com> | 2014-03-17 00:28:09 +0400 |
commit | 1138f9611224ff6579e90264c0cf0e0d4feac3d5 (patch) | |
tree | 5debd13a19be39bd265a5148bf07ae0aac99df49 /clockless_trinket.h | |
parent | 3daf11b508da67a47c481623305f4e1194da257b (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.h | 2 |
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(); } |