Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-enable interrupts in between writing LED data for ARM M0. (#751)
* Fix breakage in NRF51 support introduced by #dba8825 * Re-enable interrupts in between writing LED data for ARM M0. This adds support for FASTLED_ALLOW_INTERRUPTS to ARM M0-based platforms (e.g. SAMD21). This fixes the clock getting off when using more than ~30 LEDs, since Arduino uses an interrupt to increment the millis clock. This uses SysTick->VAL to determine whether more than 45uSecs have elapsed while interrupts were enabled. This isn't as correct as using a dedicated timer, but it does work on all ARM M0 platforms.
- Loading branch information
1 parent
5535964
commit 403464a
Showing
2 changed files
with
111 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters