Skip to content

Add hardware SPI support for Arduino Nano Every - #1166

Merged
kriegsman merged 1 commit into
FastLED:masterfrom
tom-miller1:master
Jan 4, 2021
Merged

kriegsman merged 1 commit into
FastLED:masterfrom
tom-miller1:master

Conversation

@tom-miller1

Copy link
Copy Markdown
Contributor

Tested working with official Arduino Nano Every and an APA102 LED strip.

The Arduino Nano Every pinout sheet (https://content.arduino.cc/assets/Pinout-NANOevery_latest.pdf), lists the SPI0 ports in the ALT2 portmux position (PE[3:0]), so that's where they're set in this PR using the PORTMUX_TWISPIROUTEA register (page 138 in http://ww1.microchip.com/downloads/en/DeviceDoc/ATmega4808-4809-Data-Sheet-DS40002173A.pdf). This could be configurable with some more effort.

@kriegsman

Copy link
Copy Markdown
Member

Looks good - thank you for the PR. If we need to make it more configurable later, we can look at that, but this is great for now for the Nano Every. Thank you for helping out with FastLED!

@kriegsman
kriegsman merged commit ffee762 into FastLED:master Jan 4, 2021
zackees added a commit that referenced this pull request Aug 1, 2026
163 commits upstream since the version the previous `>=1.12.15`
constraint was resolving to. Three map onto build failures seen during
long local sessions:

  #1151  warm-cache deadlock + perf watchdog
         -> "embedded zccache compile timed out after 300s"
  #1180  shorten artifact locks, defer metadata GC
  #1193  embedded-cache durability; daemon drains the index-writer WAL
         before shutdown aborts it
         -> "daemon did not become healthy after 3 spawn attempts"

Both symptoms recurred while running `bash compile` across several
boards, to the point that an unmodified-master control build failed
identically -- environmental rather than source-caused, but they blocked
verification work.

Separately worth noting, #1166 puts the C/C++ compiler binary identity
into the cache key. Previously a toolchain swap could serve objects
built by the previous compiler -- a wrong-output bug, not a slow-build
one, and relevant here because FastLED drives avr-gcc, arm-none-eabi-gcc,
xtensa and host clang out of one cache.

Security: journal environments no longer persist secrets (#1179) and
daemon-owned artifact retention is bounded (#1169).

fbuild stays at 2.5.5; it embeds its own zccache copy and realigning
that is an upstream concern.

uv.lock is gitignored here, so the floor in pyproject.toml is what
actually moves resolution.

Verified after `uv lock && uv sync` (zccache reports 1.13.0):
  bash test --cpp --clean   359/359
  bash compile uno          5036 B   (this was the build that wedged)
  bash compile esp8266      269475 B
  bash lint                 clean

Closes #3819

Co-Authored-By: Claude <[email protected]>
zackees added a commit that referenced this pull request Aug 1, 2026
163 commits upstream since the version the previous `>=1.12.15`
constraint was resolving to. Three map onto build failures seen during
long local sessions:

  #1151  warm-cache deadlock + perf watchdog
         -> "embedded zccache compile timed out after 300s"
  #1180  shorten artifact locks, defer metadata GC
  #1193  embedded-cache durability; daemon drains the index-writer WAL
         before shutdown aborts it
         -> "daemon did not become healthy after 3 spawn attempts"

Both symptoms recurred while running `bash compile` across several
boards, to the point that an unmodified-master control build failed
identically -- environmental rather than source-caused, but they blocked
verification work.

Separately worth noting, #1166 puts the C/C++ compiler binary identity
into the cache key. Previously a toolchain swap could serve objects
built by the previous compiler -- a wrong-output bug, not a slow-build
one, and relevant here because FastLED drives avr-gcc, arm-none-eabi-gcc,
xtensa and host clang out of one cache.

Security: journal environments no longer persist secrets (#1179) and
daemon-owned artifact retention is bounded (#1169).

fbuild stays at 2.5.5; it embeds its own zccache copy and realigning
that is an upstream concern.

uv.lock is gitignored here, so the floor in pyproject.toml is what
actually moves resolution.

Verified after `uv lock && uv sync` (zccache reports 1.13.0):
  bash test --cpp --clean   359/359
  bash compile uno          5036 B   (this was the build that wedged)
  bash compile esp8266      269475 B
  bash lint                 clean

Closes #3819

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