Skip to content

docs(spi-bitbang): document setPinMapping's bool result and check it in examples (#5192) - #5211

Merged
zackees merged 1 commit into
masterfrom
docs/spi-bitbang-setpinmapping-5192
Nov 9, 2026
Merged

zackees merged 1 commit into
masterfrom
docs/spi-bitbang-setpinmapping-5192

Conversation

@zackees

@zackees zackees commented Nov 9, 2026

Copy link
Copy Markdown
Member

Closes #5192.

setPinMapping() returns FL_NO_DISCARD bool on every parallel software SPI driver, but the README declared it void and its examples ignored the result.

Change

  • README API sections: both now show bool setPinMapping(...) and say a rejected mapping returns false and changes nothing.
  • README examples: both check the result.
  • New "Pin mapping rules" section: lists when a mapping is rejected, taken from spiDataPinsValid / spiPinMappingValid in spi_pin_mapping.h:
    • a pin outside GPIO 0-31;
    • two of data lanes 0-7 on the same pin, or one of them on the clock;
    • a lane 8+ on a pin that lanes 0-7 use.
  • Header usage comments: the comments in spi_block_{1,2,4,8,16,32}.h and spi_isr_{1,2,4}.h now check the result too.

Evidence

Docs and comments only, so there are no behaviour changes and nothing to test. bash lint exits 0.

@coderabbitai

coderabbitai Bot commented Nov 9, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 12 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 8 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 65a7c87 and 83ea2e7.

Files selected for processing: 10

  • src/platforms/shared/spi_bitbang/README.md
  • src/platforms/shared/spi_bitbang/spi_block_1.h
  • src/platforms/shared/spi_bitbang/spi_block_16.h
  • src/platforms/shared/spi_bitbang/spi_block_2.h
  • src/platforms/shared/spi_bitbang/spi_block_32.h
  • src/platforms/shared/spi_bitbang/spi_block_4.h
  • src/platforms/shared/spi_bitbang/spi_block_8.h
  • src/platforms/shared/spi_bitbang/spi_isr_1.h
  • src/platforms/shared/spi_bitbang/spi_isr_2.h
  • src/platforms/shared/spi_bitbang/spi_isr_4.h
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@zackees
zackees enabled auto-merge November 9, 2026 01:07
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Nov 9, 2026
@github-actions github-actions Bot added the sanitized Title, body and conversation screened; review text requires separate screening. label Nov 9, 2026
@zackees
zackees added this pull request to the merge queue Nov 9, 2026
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Memory usage (this PR vs. its merge base)

Change in examples/Blink per target. The left number is this PR's image flash / attributed RAM in bytes; the colored delta is the change from the merge base (red ↑ is larger, green ↓ is smaller, Same is unchanged).

Target FLASH [bytes] RAM [bytes]
attiny85 2,460 (Same) 136 (Same)

Merged via the queue into master with commit 1be101a Nov 9, 2026
130 of 131 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Nov 9, 2026
@zackees
zackees deleted the docs/spi-bitbang-setpinmapping-5192 branch November 17, 2026 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sanitized Title, body and conversation screened; review text requires separate screening.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

follow-up(#5146): document bool result of spi_bitbang setPinMapping

1 participant