Code for Arduino Mega running a jack in the box.