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-11-08 05:48:01 +0300
committerDaniel Garcia <danielgarcia@gmail.com>2014-11-08 05:48:01 +0300
commit1ca57f1746d11b239bfa3e4588170ee1d00c7b04 (patch)
tree3b2ab5d2a3b8ca44e7398d0dbe7481d856eaa999
parentc996c8a56502651bbf509cf8f787e1a8843d0e12 (diff)
Possible fix for issues #67 (arduino 1.5.7 support) and #90 (gcc 4.8 issues?)
-rw-r--r--clockless_trinket.h3
-rw-r--r--led_sysdefs.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/clockless_trinket.h b/clockless_trinket.h
index 4f7b7db3..63f037f9 100644
--- a/clockless_trinket.h
+++ b/clockless_trinket.h
@@ -261,6 +261,9 @@ protected:
ADJDITHER2(d1,e1);
ADJDITHER2(d2,e2);
+ hi = *port | mask;
+ lo = *port & ~mask;
+
// Sum of the clock counts across each row should be 10 for 8Mhz, WS2811
// The values in the D1/D2/D3 indicate how many cycles the previous column takes
// to allow things to line back up.
diff --git a/led_sysdefs.h b/led_sysdefs.h
index 57dc605d..710ea552 100644
--- a/led_sysdefs.h
+++ b/led_sysdefs.h
@@ -34,6 +34,7 @@ typedef volatile uint8_t RwReg; /**< Read-Write 8-bit register (volatile u
#endif
+#if 0
#if defined(ARDUINO) && defined(FASTLED_AVR) && ARDUINO >= 157
#error Arduion versions 1.5.7 and later not yet supported by FastLED for AVR
#endif
@@ -41,6 +42,7 @@ typedef volatile uint8_t RwReg; /**< Read-Write 8-bit register (volatile u
#if defined(ARDUINO) && defined (FASTLED_AVR) && (__GNUC__ == 4) && (__GNUC_MINOR__ > 7)
#error gcc versions 4.8 and above are not yet supported by FastLED for AVR
#endif
+#endif
// Arduino.h needed for convinience functions digitalPinToPort/BitMask/portOutputRegister and the pinMode methods.
#include<Arduino.h>