Skip to content

Feature/avr clockless trinket negative advance by - #1270

Merged
kriegsman merged 3 commits into
FastLED:masterfrom
ben-xo:feature/avr-clockless-trinket-negative-advanceBy
Jan 2, 2022
Merged

kriegsman merged 3 commits into
FastLED:masterfrom
ben-xo:feature/avr-clockless-trinket-negative-advanceBy

Conversation

@ben-xo

@ben-xo ben-xo commented Aug 1, 2021

Copy link
Copy Markdown
Contributor

This PR mainly allows Clockless Trinket to deal with negative advanceBy values, which are allowed.

A negative advanceBy implies that you want to render an array of LEDS backward, starting at the end.

Example usage:

Show forward (as usual, but spelled out to illustrate the subsequent example):

FastLED[0].setLeds(&leds[0], STRIP_LENGTH);
FastLED.show();

Show in reverse:

FastLED[0].setLeds(&leds[STRIP_LENGTH-1], -STRIP_LENGTH);
FastLED.show();   

I don't think the change to Controller::show() is ideal; I think this needs explicit support in the API. (it's currently only half there). It appears to be very difficult to access PixelController objects from the main scope, as they're created by show() right before showing.

But, regardless, the changes to clockless_trinket are independent and could be taken on their own.

ben-xo added 3 commits August 1, 2021 12:35
…ngth

Example usage:

```
Show forward:

FastLED[0].setLeds(&leds[0], STRIP_LENGTH);
FastLED.show();

Show in reverse:

FastLED[0].setLeds(&leds[STRIP_LENGTH-1], -STRIP_LENGTH);
FastLED.show();

```
@ben-xo

ben-xo commented Aug 1, 2021

Copy link
Copy Markdown
Contributor Author

Part four of the changes from my previous PR (#1265) which I'm separating out into separate pull requests, following from #1268

cc @kriegsman

@kriegsman
kriegsman merged commit f1caccb into FastLED:master Jan 2, 2022
@kriegsman

Copy link
Copy Markdown
Member

Thanks for this contribution, @ben-xo. Nice way to allow mirroring of LED patterns on multiple strips without requiring extra memory.

@ben-xo
ben-xo deleted the feature/avr-clockless-trinket-negative-advanceBy branch January 3, 2022 02:16
zackees added a commit that referenced this pull request Aug 7, 2026
fbuild 2.5.15 was published to PyPI on 2026-08-07 05:34:16Z (tag
v2.5.15). It carries three fixes this repo needs, all confirmed
ancestors of the tag:

  2976d863  fix(rp): honor Arduino Bluetooth menu (#1263)
  0dd68b24  fix(teensy): run the link in the build dir (#1268)
  1324d6c6  fix(arm): run the link in the build dir for every ARM linker (#1270)

Why it matters here:

- #1263 is what makes `board_build.ipbtstack = ipv4btcble` take effect,
  so `libipv4-bt.a` is linked instead of `libipv4.a` and BTstackLib
  compiles. Without it the rp2350w build dies at `_needsbt.h`'s
  `static_assert(ENABLE_CLASSIC, ...)`, which blocked every RP2350W HIL
  flow in #3864.
- #1268/#1270 stop the ARM link running in the daemon's inherited cwd,
  which was dropping a stray 0-byte `-r` file into the repo root on every
  clean build (#3867).

Verified against the published wheel (registry install, not a local
build — the previously reported rp2350w validation used a local fbuild
development executable and was not reproducible from a clean checkout):

  bash compile rp2350w --examples AutoResearch
  -> build succeeded in 253.7s (flash: 1177936 bytes, ram: 132048 bytes)
  -> SUCCESS: AutoResearch
  -> working tree clean, no stray `-r`

Byte-identical to the local-build result, so the published artifact
behaves the same.

`bash lint` clean. C++ tests fingerprint-skipped (no C++ changed in this
commit); the cached result is 362/362.

Refs #3864, #3867, FastLED/fbuild#1269

Co-authored-by: Claude <[email protected]>
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.

2 participants