PaulStoffregen / Encoder

Quadrature Encoder Library for Arduino
http://www.pjrc.com/teensy/td_libs_Encoder.html
540 stars 239 forks source link

Sanguino Interrupt define incomplete #74

Open mamama1 opened 2 years ago

mamama1 commented 2 years ago

Hi

I would suggest to add 1284(P) support by adding " || defined(AVR_ATmega1284P) || defined(AVR_ATmega1284)" to line 59 in interrupt_pins.h.

Currently working on a project in PlatformIO with an Encoder and a 1284P and meanwhile I'm doing this via build options:

-D CORE_NUM_INTERRUPT=3
-D CORE_INT0_PIN=10
-D CORE_INT1_PIN=11
-D CORE_INT2_PIN=2

I'd do a pull request but unfortunately I'm too stupid for that. Thanks!