Make sure _Ex_PINS is defined

Also fix analogInputToDigitalPin so it uses proper C hex notation
This commit is contained in:
Scott Lahteine
2015-01-27 15:19:03 -08:00
parent 80be6f3f91
commit ae4b348d77
3 changed files with 108 additions and 7 deletions

View File

@ -34,7 +34,7 @@
// Arduino < 1.0.0 does not define this, so we need to do it ourselves
#ifndef analogInputToDigitalPin
# define analogInputToDigitalPin(p) ((p) + A0)
# define analogInputToDigitalPin(p) ((p) + 0xA0)
#endif
#ifdef AT90USB