Arduino code used to create measurement protocols on the photosynq handheld device (uses arduino compatible Teensy 3.0 microprocessor).