diff options
-rw-r--r-- | platforms/arm/nrf52/clockless_arm_nrf52.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platforms/arm/nrf52/clockless_arm_nrf52.h b/platforms/arm/nrf52/clockless_arm_nrf52.h index d8a5da98..94fd3ed8 100644 --- a/platforms/arm/nrf52/clockless_arm_nrf52.h +++ b/platforms/arm/nrf52/clockless_arm_nrf52.h @@ -156,6 +156,11 @@ public: FASTLED_NRF52_DEBUGPRINT(" T0H == %d", _T0H); FASTLED_NRF52_DEBUGPRINT(" T1H == %d", _T1H); FASTLED_NRF52_DEBUGPRINT(" TOP == %d\n", _TOP); + // to avoid pin initialization from causing first LED to have invalid color, + // call mWait.mark() to ensure data latches before color data gets sent. + startPwmPlayback_InitializePinState(); + mWait.mark(); + } virtual uint16_t getMaxRefreshRate() const { return 800; } |