Skip to content

Commit 1ca57f1

Browse files
committed
Possible fix for issues FastLED#67 (arduino 1.5.7 support) and FastLED#90 (gcc 4.8 issues?)
1 parent c996c8a commit 1ca57f1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

clockless_trinket.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,9 @@ class ClocklessController : public CLEDController {
261261
ADJDITHER2(d1,e1);
262262
ADJDITHER2(d2,e2);
263263

264+
hi = *port | mask;
265+
lo = *port & ~mask;
266+
264267
// Sum of the clock counts across each row should be 10 for 8Mhz, WS2811
265268
// The values in the D1/D2/D3 indicate how many cycles the previous column takes
266269
// to allow things to line back up.

led_sysdefs.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,15 @@ typedef volatile uint8_t RwReg; /**< Read-Write 8-bit register (volatile u
3434

3535
#endif
3636

37+
#if 0
3738
#if defined(ARDUINO) && defined(FASTLED_AVR) && ARDUINO >= 157
3839
#error Arduion versions 1.5.7 and later not yet supported by FastLED for AVR
3940
#endif
4041

4142
#if defined(ARDUINO) && defined (FASTLED_AVR) && (__GNUC__ == 4) && (__GNUC_MINOR__ > 7)
4243
#error gcc versions 4.8 and above are not yet supported by FastLED for AVR
4344
#endif
45+
#endif
4446

4547
// Arduino.h needed for convinience functions digitalPinToPort/BitMask/portOutputRegister and the pinMode methods.
4648
#include<Arduino.h>

0 commit comments

Comments
 (0)