Skip to content

NRF52 -- Prevent pin initialization affecting clockless LED data - #860

Merged
focalintent merged 1 commit into
FastLED:masterfrom
henrygab:MinFix856
Aug 13, 2019
Merged

focalintent merged 1 commit into
FastLED:masterfrom
henrygab:MinFix856

Conversation

@henrygab

Copy link
Copy Markdown
Contributor

Avoid first-time pin initialization from affecting showLeds() for clockless chipsets.

Fixes #856.

If a sketch does not initialize pins to low state (or high when _FLIP=1),
the first call to showLeds() may intialize pin state, which clockless LEDs
may treat as part of a data stream.

Avoid this by also initializing the pin state in Init(), and
call mWait.mark() to ensure LEDs will not consider this part of the
LED data.

Initialization of pins may cause change in pin output.
Fix may be to initialize th epin state in Init(), and
call mWait.mark() to prevent showPixels() from sending
actual LED data to the strand until any potential
prior data had time to latch.
@focalintent
focalintent merged commit 4432597 into FastLED:master Aug 13, 2019
@henrygab
henrygab deleted the MinFix856 branch August 13, 2019 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nRF52 - First call to showPixels() with neopixel results in wrong color

2 participants