Hexapod code for arduino