/* /0LOGBOOK 0 */ program test { #include #include #include #include sensor touch3 on 3 touch3 is switch as boolean event tPress_touch3EventPress when touch3.pressed event tRelease_touch3EventRelease when touch3.released main { ext InterfaceType "kFreestyle" rcx_ClearTimers bbs_GlobalReset([A B C]) trigger tPress_touch3EventPress trigger tRelease_touch3EventRelease try { forever { direction [ B C ] [ ] on [ B C ] wait 50 off [ C ] wait until tPress_touch3EventPress direction [ ] [ C ] on [ C ] wait 50 off [ B C ] wait until tRelease_touch3EventRelease } } retry on fail } }