Prevent USB serial connection from restarting MEGA

The most flexible way of solving this is to cut the jumper on the board "Reset EN" and then it will no longer reset when you connect. If you attach a switch to each side of the jumper after cutting it. You can put the switch in two modes: 1 - connection is made and the board will reset - use this for programming your board. 2 - connection is broken and the board will not reset - use this for normal operation when you want to connect and view data.