sparkfun / Arduino_Boards

Board definitions for SparkFun-manufactured AVR, ARM, and ESP-based Arduino boards.
263 stars 125 forks source link

promicro digitalPinToInterrupt wrong Interrupt #34

Closed lesockz closed 6 years ago

lesockz commented 6 years ago

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

associates INT4 to Arduino PIN7 (atmega PIN PE6) but this is wrong. Right interrupt would be INT6