Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Arduino SAMD21 pin mapping #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tuna-f1sh
Copy link

The comment about interrupts not working on the Arduino Zero seems out of date, not enough pins are defined however - this was what prevented it working for me. I first used #13 but found that the code changes are not required to get it working - perhaps the core has changed since or @hanyazou was re configuring the pin accidentally in setup()?

Unfortunately SAMD variants of Arduinos have different mapping and expose different interrupt pins so not all SAMD21G18A are equal. There was no define that I could find separating them but the variant.cpp manages the hardware pin mapping so there is no issue with a user specifying a pin that does not map to an interrupt other than it not working. I've commented exclusive pins.

@CDRXavier
Copy link

CDRXavier commented Jul 7, 2022

I think there is a way to see the exact type of board used for compiling?
Same as you would differentiate between the other different boards?
The problem is the m0 is used in massively different boards, different MKR and including the Zero, with different amount of exposed pins, etc.

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