Skip to content

Restore and use PINCOUNT_fn() wrapper #107

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

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

facchinm
Copy link
Member

Fixes #102

@WestfW this should fix the PINCOUNT macro being partially missing, while refactoring the code to use it.

facchinm added a commit to facchinm/ArduinoCore-renesas that referenced this pull request Aug 25, 2023
The macro represents the number of pins that can be actively used "directly".
Since A4/A5 are shared with SDA/SCL, the total number of unique gpios on UNO R4 headers is indeed 14+6

NUM_DIGITAL_PINS is currently unused in the core (better to use PINCOUNT arduino#107 for any safety check)
@facchinm facchinm merged commit c8c79e2 into arduino:main Aug 25, 2023
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.

PINS_COUNT doesn't work
1 participant