Repository navigation
Conversation
…ockless signal. This enables very fast interrupts (such an audio sampler) to work for e.g. sound reactive light setups, with minimal jitter.
…ults in slightly faster strip rendering)
… short pulses to stop them becoming long pulses.
…olor correction, the other with clock skew. Rename one of the uses.
…ender back to back, which allows offsetting without rewriting all the data.
it glitches the showN() function by occassionally taking too long when the frame loop point and an ISR fire at the same time.
…really worked, though.
…ent CRGB arrays and show them on a single strip. The main purpose of this is to allow joining together of different offsets in a way that's fast enough for WS2811s. For example, by taking two pointers into your regular LED array, you can perform offsetting (e.g. scrolling rotation around a circular strip) without actually moving any of the CRGB data in RAM. This allows for a number of effects at essentially no cost.
|
@ben-xo this continues to be a truly amazing piece of work; I love what you're doing in here. @samguyer and I have discussed it a bunch -- particularly the support for (short) interrupts, and I'd like to merge it in to the main library. One thing that I'd like to ask for is that you consider making the the inclusion of the new SEI / CLI that you've added inside the output loops conditionally compiled in, depending on the value of FASTLED_ALLOW_INTERRUPTS. That way, code that is not trying to interrupts won't have to spend the clock cycles (or code size bytes), but code that is trying to use interrupts will get the extra instructions and capabilities. How does that seem to you? Again, this is an amazing piece of work, and I'm very interested in getting it merged in, and shipped out to the world. Also, I'd like to play with it myself! Thanks again for the great contributions! |
Hooray, glad you're finding this interesting!! Because of the way the _D1() / _D2() / _D3() delays are structured, it shouldn't actually add any clock cycles. But it could add code size bytes, you're right. I would be most happy to pry-apart this PR into smaller more focussed PRs. I kinda just filed it all in one to gauge interest. I'll open a series of more focussed PRs and try to apply your recommendations.
😊 |
|
closing this PR; opening a series of new PRs. |
I present here a patch (which is currently only implemented fully for Clockless Trinket) which fixes a few long standing bugs as well as enabling new features.
Features
-- free "reverse" (on a per sub-block basis)
-- mirroring
-- repeating a short array of pixels onto a longer strip on a loop
-- rotation (showing N...END, 0..N, then N+1..END, 0..N+1, etc)
-- offsetting
-- could also be used for scrolling vertically or horizontally on grids
Bugs Fixed
If you want to see it in action… i can provide video.