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

Compile-time errors if you try to use a pin number that's out of range. [imported] #924

Open
cmaglie opened this issue Nov 15, 2012 · 0 comments
Assignees
Labels
Component: Core Related to the code for the standard Arduino API feature request A request to make an enhancement (not a bug fix)

Comments

@cmaglie
Copy link
Member

cmaglie commented Nov 15, 2012

This is Issue 924 moved from a Google Code project.
Added by 2012-05-27T16:48:15.000Z by dmel...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Enhancement, Priority-Medium, Component-IDE, Component-Core

Original description

For example, using pin 50 on the Uno (which would work on the Mega).

This seems tricky to implement. We could try to parse the code, which is messy and complicated. We could also try to make all the relevant functions into macros, with pre-processor code to check for and range-check compile-time constant arguments.

@ffissore ffissore added the New label Feb 27, 2014
@per1234 per1234 added the feature request A request to make an enhancement (not a bug fix) label Jul 2, 2017
@per1234 per1234 added the Component: Core Related to the code for the standard Arduino API label Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Core Related to the code for the standard Arduino API feature request A request to make an enhancement (not a bug fix)
Projects
None yet
Development

No branches or pull requests

4 participants