What you will need to do is:
-
Break the connection from the motor shield to digital pin 7 of the Arduino. The easiest way to do this is to cut off that pin on the bottom of the motor shield.
-
Connect that pin on the motor shield to an unused pin, for example pin 13 or one of the analog pins. You can do this by connecting a jumper between pin 7 and your chosen pin on the top of the motor shield.
-
Modify the motor shield software to redefine MOTORENABLE as your chosen replacement pin.