arduino / arduino/Arduino

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

Open
#924 0 comments 0 reactions 1 assignee Claimed by @cmaglie View on GitHub
Component: Core feature request
Dominant language
Java
Stars
14.6k
Forks
7k
PR merge metrics
No merged PRs in 30d

Description

This is [Issue 924](http://code.google.com/p/arduino/issues/detail?id=924) moved from a Google Code project.
Added by 2012-05-27T16:48:15.000Z by [dmel...@gmail.com](http://code.google.com/u/107726014984682000895/).
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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.