AdministratorJanuary 28, 2019 at 3:57 pm
If you look for the ATmega2560 pinout you can see there are a lot of PCINTxx pins. All of them are able to be used as
Pin Change Interrupt ( PCINT).
You only have to look for “Pin Change Interrupt Arduino MEGA”. there are a lot of examples how to do that depending on your needs.
There are also ready to use libraries to do that.