diff options
author | Marc MERLIN <marc_soft@merlins.org> | 2018-06-23 03:27:40 +0300 |
---|---|---|
committer | Daniel Garcia <danielgarcia@gmail.com> | 2018-06-23 03:27:40 +0300 |
commit | dcbf39933f51a2a0e4dfa0a2b3af4f50040df5c9 (patch) | |
tree | 7a1d2ee2986161bc415919dba1cddcafc6567240 | |
parent | 385a56fa6318c8928c60042ddb78d65db2811876 (diff) |
WAIT_TIME=50 to allow interrupts without breaking matrix output. (#596)
* WAIT_TIME=50 to allow interrupts without breaking matrix output.
WAIT_TIME set to 5 was too short and FastLED aborted frames too early
and restarted them incorrectly.
(as explained by Daniel Garcia in
https://plus.google.com/communities/109127054924227823508 )
Tested on ESP8266 with 768 LED matrix in both serialized output
and 3x 256 output.
* Update clockless_block_esp8266.h
* Update clockless_esp8266.h
-rw-r--r-- | platforms/esp/8266/clockless_block_esp8266.h | 2 | ||||
-rw-r--r-- | platforms/esp/8266/clockless_esp8266.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/platforms/esp/8266/clockless_block_esp8266.h b/platforms/esp/8266/clockless_block_esp8266.h index e3341d16..40c91612 100644 --- a/platforms/esp/8266/clockless_block_esp8266.h +++ b/platforms/esp/8266/clockless_block_esp8266.h @@ -17,7 +17,7 @@ extern uint32_t _frame_cnt; extern uint32_t _retry_cnt; #endif -template <uint8_t LANES, int FIRST_PIN, int T1, int T2, int T3, EOrder RGB_ORDER = GRB, int XTRA0 = 0, bool FLIP = false, int WAIT_TIME = 5> +template <uint8_t LANES, int FIRST_PIN, int T1, int T2, int T3, EOrder RGB_ORDER = GRB, int XTRA0 = 0, bool FLIP = false, int WAIT_TIME = 50> class InlineBlockClocklessController : public CPixelLEDController<RGB_ORDER, LANES, PORT_MASK> { typedef typename FastPin<FIRST_PIN>::port_ptr_t data_ptr_t; typedef typename FastPin<FIRST_PIN>::port_t data_t; diff --git a/platforms/esp/8266/clockless_esp8266.h b/platforms/esp/8266/clockless_esp8266.h index 20ae6412..f799635a 100644 --- a/platforms/esp/8266/clockless_esp8266.h +++ b/platforms/esp/8266/clockless_esp8266.h @@ -16,7 +16,7 @@ __attribute__ ((always_inline)) inline static uint32_t __clock_cycles() { #define FASTLED_HAS_CLOCKLESS 1 -template <int DATA_PIN, int T1, int T2, int T3, EOrder RGB_ORDER = RGB, int XTRA0 = 0, bool FLIP = false, int WAIT_TIME = 5> +template <int DATA_PIN, int T1, int T2, int T3, EOrder RGB_ORDER = RGB, int XTRA0 = 0, bool FLIP = false, int WAIT_TIME = 50> class ClocklessController : public CPixelLEDController<RGB_ORDER> { typedef typename FastPin<DATA_PIN>::port_ptr_t data_ptr_t; typedef typename FastPin<DATA_PIN>::port_t data_t; |