hello,
i am using portenta h7 and tringto run the encoder.h example.
i get an error code
#error "Interrupts are unknown for this board, please add to this code"
my code is
#include <Arduino_PortentaBreakout.h>
#include <Encoder.h>
Encoder myEnc(GPIO_1, GPIO_3);
void setup() {
Serial.begin(9600);
Serial.println("Basic Encoder Test:");
}
long oldPosition = -999;
void loop() {
long newPosition = myEnc.read();
if (newPosition != oldPosition) {
oldPosition = newPosition;
Serial.println(newPosition);
}
}
i have read that all gpio pins of the board are inturrapt compitable
any suggestions?