Skip to content
Permalink
Branch: master
Commits on Apr 6, 2019
  1. Re-enable interrupts in between writing LED data for ARM M0. (#751)

    ademuri authored and focalintent committed Apr 6, 2019
    * 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.
You can’t perform that action at this time.