I cannot compile the Basic example included with the Encoder library for the Arduino Nano Every.
I tried changing the encoder pins to 2 and 3 (as these are the interrupt enabled pins on the Nano).
I also tried to emulate the ATMEGA328 pinout.
I get the following error.
Arduino: 1.8.10 (Mac OS X), Board: "Arduino Nano Every, None (ATMEGA4809)" In file included from /Users/eraxeg/Documents/Arduino/libraries/Encoder/Encoder.h:46:0, from /var/folders/ky/xcrtzkjs3sb124szt8qxns8r0000gn/T/arduino_modified_sketch_718609/Basic.pde:7: /Users/eraxeg/Documents/Arduino/libraries/Encoder/utility/interrupt_pins.h:202:2: error: #error "Interrupts are unknown for this board, please add to this code" #error "Interrupts are unknown for this board, please add to this code" ^~~~~ /Users/eraxeg/Documents/Arduino/libraries/Encoder/utility/interrupt_pins.h:205:2: error: #error "Encoder requires interrupt pins, but this board does not have any :(" #error "Encoder requires interrupt pins, but this board does not have any :(" ^~~~~ /Users/eraxeg/Documents/Arduino/libraries/Encoder/utility/interrupt_pins.h:206:2: error: #error "You could try defining ENCODER_DO_NOT_USE_INTERRUPTS as a kludge." #error "You could try defining ENCODER_DO_NOT_USE_INTERRUPTS as a kludge." ^~~~~ Multiple libraries were found for "Encoder.h" Used: /Users/eraxeg/Documents/Arduino/libraries/Encoder exit status 1 Error compiling for board Arduino Nano Every. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
How can I get encoders to work with interrupts on this board?