program test { #include #include #include #include var sec = 0 var tim = 0 sensor touch3 on 3 touch3 is switch as boolean event tPress_touch3EventPress when touch3.pressed sensor touch1 on 1 touch1 is switch as boolean event tPress_touch1EventPress when touch1.pressed main { ext InterfaceType "kFreestyle" rcx_ClearTimers bbs_GlobalReset([A B C]) start TouchWatcher0 start TouchWatcher1 rcx_Priority( 8) trigger tPress_touch3EventPress trigger tPress_touch1EventPress try { tone 2000 for 100 tim = 0 display 37 } retry on fail } watcher TouchWatcher0 monitor tPress_touch3EventPress { rcx_Priority( 3 ) try { sound 4 sec = tim counter1 = sec repeat (counter1/10) { sound 1 display sec:1 sec -= 10 wait 600 } sound 6 on [ A B C ] wait 500 float [ A B C ] stop tasks } restart on fail } restart on event watcher TouchWatcher1 monitor tPress_touch1EventPress { rcx_Priority( 3 ) try { tim += 100 display tim:1 } restart on fail } restart on event fragment ( 26,315 ) { comment (0, 0 ) "Button 1 increments in 1 minute increments.\r\rButton 3 starts the ball rolling" } }