Esp32 with ps2 and it have bug: avr

Hello everyone, I have a project related to ESP32 and I use a ps2 controller but using ps2 lib it is an avr error, can anyone ask if there is any solution. I tried many libs on github but none of them worked

Sounds like you are trying to use a library specific to ATmega processors (Arduino Uno R3 and the like). That won't compile for any other type of microprocessor.

For hints on successful posting, please read and follow the directions in the "How to get the best out of this forum" post, linked at the head of every forum category.

Maybe try the libs in the IDE instead.