Portenta h7 interrupy pins

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?

The PJRC Encoder library does not support STM32 processors. It can be expanded to do so by adding the required information to interrupt_config.h and direct_pin_read.h.

I have added STM32 support to my NewEncoder Library but never tested it personally. However, one STM32 user supplied a fix for that processor on GitHub. So, as far as I know it works. Run the simple "SingleEncoder.ino" example and report back here.

thank you for your fast responce,
the NewEncoder library seems to solve the problem
thank you again