adafruit / Adafruit_Arduino_Boards

Configuration and other support files to use Adafruit's boards like Trinket, Pro Trinket, Gemma, Flora, and more with the Arduino IDE 1.6.x
51 stars 36 forks source link

pinToInterrupt not defined for 32u4 Boards #7

Closed deisterhold closed 8 years ago

deisterhold commented 8 years ago

In all of the pins_arduino.h headers files the pinToInterrupt is not defined.

On line 72 in the pins_arduino.h the following needs to be added: #define digitalPinHasPWM(p) ((p) == 3 || (p) == 5 || (p) == 6 || (p) == 9 || (p) == 10 || (p) == 11 || (p) == 13)

#define digitalPinToInterrupt(p) ((p) == 0 ? 2 : ((p) == 1 ? 3 : ((p) == 2 ? 1 : ((p) == 3 ? 0 : ((p) == 7 ? 4 : NOT_AN_INTERRUPT)))))

The following files are missing this macro: Bluefruit Micro Generic 32u4 Circuit Play Feather Flora

ladyada commented 8 years ago

updated, may be a few days until we repackage tho!