Toggling ATmega 2560 Unconnected Pins

pinMode(PE7,OUTPUT); doesn't work. You need to do everything manually (eg, setting the DDRE register).

Or use MCUDude/hansibull's MegaCore, which supports all pins 2560 and 2561 like normal arduino pins.