Fixed for Nano Every
The Nano Every (ATmega4809) doesn't use the same port names or scheme to directly access GPIO pins and didn't compile with the latest Arduino board support. I changed the #ifdef statements to disable direct port access on that target so that the library can compile successfully and work (although slower).