Skip to content

fix(samd): map QT Py M0 NeoPixel pin - #4103

Merged
zackees merged 4 commits into
masterfrom
fix-issue-1354-qtpy-m0-neopixel-pin
Sep 1, 2026
Merged

zackees merged 4 commits into
masterfrom
fix-issue-1354-qtpy-m0-neopixel-pin

Conversation

@zackees

@zackees zackees commented Aug 31, 2026 •

Copy link
Copy Markdown
Member

Summary

  • map the Adafruit QT Py M0 onboard NeoPixel data pin to D11 and PA18
  • scope the default to the QT Py M0 board definition
  • add board-pin regression coverage

Verification

  • 66 focused SAMD board-pin tests passed
  • bash lint passed
  • combined clean debug suite: 372/372 passed
  • combined clean quick suite: 372/372 passed

The onboard NeoPixel behavior still requires physical board validation.

Shared CI prerequisites

This code PR also carries two shared CI repairs uncovered while validating all eight branches: ESP32-only example metadata and matching FL_NO_EXCEPT annotations. The same prerequisite patches are present on the seven code PRs and will fall out of later diffs after the first one lands.

Closes #1354

Summary by CodeRabbit

  • New Features

    • Added onboard NeoPixel support for the QT Py M0, including the correct pin mapping and default configuration.
    • Expanded the available pin range for the QT Py M0.
  • Bug Fixes

    • Improved sketch filtering validation for ESP32-specific examples.
  • Tests

    • Added coverage for QT Py M0 NeoPixel mapping and ESP32 sketch filtering.

@coderabbitai

coderabbitai Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: 0854caa5-9621-4f54-ba6e-4940578d9ad6

📥 Commits

Reviewing files that changed from the base of the PR and between afd498e and a131369.

📒 Files selected for processing (1)
  • ci/tests/test_sketch_filter.py

Included review availability: Your plan provides up to 8 included reviews per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The QT Py M0 definition now supports its onboard NeoPixel on pin 11. CI records pin mappings, verifies the PA18 mapping and clockless default, and checks ESP32 filtering for MultipleEsp32SpiBuses.ino.

Changes

QT Py M0 NeoPixel Support

Layer / File(s) Summary
Add QT Py M0 pin 11 definition
src/platforms/arm/d21/fastpin_arm_d21.h
The QT Py M0 configuration raises MAX_PIN to 11, assigns FL_PIN_CLOCKLESS_1 to pin 11, and defines PIN_NEOPIXEL as bit 18 in group 0.
Validate pin mapping metadata
ci/tests/test_samd_default_pins.py
The parser records (bit, group) mappings for each defined pin. A test verifies the QT Py M0 onboard NeoPixel mapping and default pin.

ESP32 Sketch Filter Coverage

Layer / File(s) Summary
Validate ESP32 sketch filtering
ci/tests/test_sketch_filter.py
A regression test parses MultipleEsp32SpiBuses.ino and verifies that its filter requires platform=esp32.

Estimated code review effort: 2 (Simple) | ~15 minutes

Merge Risk: ⚪ Minimal · up to a1313

This PR narrowly maps the QT Py M0 onboard NeoPixel to D11/PA18 and adds regression coverage; no actionable merge-blocking risk remains after normal checks and review.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Out of Scope Changes check ⚠️ Warning The ESP32-specific regression test in ci/tests/test_sketch_filter.py is unrelated to the QT Py M0 NeoPixel fix required by issue #1354. Move the ESP32 sketch-filter change to a separate pull request, or provide a linked issue that explicitly requires this CI change.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the primary change: mapping the QT Py M0 NeoPixel pin for SAMD.
Linked Issues check ✅ Passed The changes satisfy issue #1354 by accepting pin 11 for ADAFRUIT_QTPY_M0, mapping it to PA18, defining FL_PIN_CLOCKLESS_1 as pin 11, and adding regression coverage for the mapping and default.
Docstring Coverage ✅ Passed Docstring coverage is 83.33% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 3 files.
  • Fix all pre-merge checks with AI
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-issue-1354-qtpy-m0-neopixel-pin

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

…-m0-neopixel-pin

# Conflicts:
#	examples/MultipleEsp32SpiBuses/MultipleEsp32SpiBuses.ino
#	src/fl/channels/adapters/spi_channel_adapter.cpp.hpp
#	src/fl/channels/adapters/spi_channel_adapter.h
#	src/fl/gfx/colorutils.cpp.hpp
@zackees
zackees merged commit 619eb0b into master Sep 1, 2026
29 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Sep 1, 2026
@zackees
zackees deleted the fix-issue-1354-qtpy-m0-neopixel-pin branch November 5, 2026 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Can't use on-board LED on Adafruit QT Py SAMD21

1 participant