test gui code and pwm_test in scratch_pad