anilgkts / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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.  

Original issue reported on code.google.com by dmel...@gmail.com on 27 May 2012 at 4:48