Output high at bootup (need to stay low) Solved

backbone:
When I supply power at the MEGA it sets two outputs HIGH which start a motor to turn for a scond or so.

They're probably not high, just floating.

Try connecting them to ground via a 4.7k resistor (or something in that range).