[variant] Fix XIAO M0 Plus pin definitions and add PIN_NEOPIXEL#81
Open
cumin777 wants to merge 3 commits into
Open
[variant] Fix XIAO M0 Plus pin definitions and add PIN_NEOPIXEL#81cumin777 wants to merge 3 commits into
cumin777 wants to merge 3 commits into
Conversation
Adafruit NeoPixel library expects PIN_NEOPIXEL. Define it as alias to PIN_LED_RGB (D11/PA27) for compatibility. Co-Authored-By: Claude <noreply@anthropic.com>
…d pin definitions Based on schematic 202004620_XIAO SAMD21-Plus_V1.0, define all 31 pins including I2C0/I2C1 (SERCOM2/SERCOM1), SPI (SERCOM0), UART (SERCOM4), I2S, RGB LED, user button, and additional GPIOs. Bug fixes included: - PA15/PA14: TC3 only has CH0/CH1, corrected from invalid CH3/CH2 - PA19: TC3/WO[1] is on F-mux, use PIO_TIMER_ALT instead of PIO_TIMER - PB23: No EXTINT line, use EXTERNAL_INT_NONE instead of EXTERNAL_INT_7 Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two changes for the XIAO M0 Plus variant:
Add
PIN_NEOPIXELmacro invariant.h— DefinePIN_NEOPIXELas alias toPIN_LED_RGB(D11/PA27) for compatibility with the Adafruit NeoPixel library and its example sketches.Rewrite
variant.cppwith complete and corrected pin definitions based on schematic202004620_XIAO SAMD21-Plus_V1.0, covering all 31 pins. Bug fixes included:Test plan
attachInterrupt()on D24 does not cause unexpected behavior🤖 Generated with Claude Code