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>2013-11-28 14:09:55 +0400
committerDaniel Garcia <danielgarcia@gmail.com>2013-11-28 14:09:55 +0400
commita0f9c91a21a1f6c238ea419bc1cd835485141ac7 (patch)
treef8600acc58475189de27039ccacad832365a4e85 /clockless_trinket.h
parent16204092116ebc56dac507b422cf1764d4f6d711 (diff)
Make sure we're scaling the first byte. Also, make sure we're computing the output prot properly
Diffstat (limited to 'clockless_trinket.h')
-rw-r--r--clockless_trinket.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/clockless_trinket.h b/clockless_trinket.h
index a7d4bee6..6fa6ddb8 100644
--- a/clockless_trinket.h
+++ b/clockless_trinket.h
@@ -120,7 +120,7 @@ public:
[O0] "M" (RGB_BYTE0(RGB_ORDER)), \
[O1] "M" (RGB_BYTE1(RGB_ORDER)), \
[O2] "M" (RGB_BYTE2(RGB_ORDER)), \
- [PORT] "M" (0x18) \
+ [PORT] "M" (FastPin<DATA_PIN>::port()-0x20) \
: /* clobber registers */
@@ -177,7 +177,7 @@ public:
uint16_t advanceBy = advance ? (skip+3) : 0;
const uint8_t zero = 0;
b0 = data[RGB_BYTE0(RGB_ORDER)];
- // b0 = scale8(b0, scale);
+ b0 = scale8(b0, scale);
b1 = data[RGB_BYTE1(RGB_ORDER)];
b2 = 0;
register uint8_t loopvar;