Haxapod arduini mega 2560

RE-edit your first posting to present your code as a code-section
follow this tutorial that describes how yuo can do this

best regards Stefan