Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #4102.
This seems to prevent incorrect colors on the first NeoPixel in a string on SAMx5x processors. This is especially noticeable on 5v-level-shifted pins, such as D5 on ItsBitsy M4.
Timings were revamped by empirically changing the delay counts and observing the waveforms. The current timings in ns are below, and can vary by a couple of ns:
zero: 402 high / 834 low
one: 836 high / 402 low
This is close to the RP2040 timings, which uses PIO for precise timings
input zero: 416 high / 832 low
input one: 832 low / 416 high
Note that the far-end Neopixel, which regenerates the timings, is not like this. These far-end timings was observed when driving with an RP2040
output zero: 268 high / 978 low (varies slightly by a few ns)
output one: 698 high / 550 low (varies slightly)