### EVENT BUTTON FORWARD ### onevent button.forward # starts line tracking and waits for sync bit if button.forward == 1 then running = 1 state = S_WAIT_SYNC end ### EVENT BUTTON CENTER ### onevent button.center #stops running and motors, turns LEDs off if button.center == 1 then running = 0 motor.left.target = 0 motor.right.target = 0 call leds.top(0,0,0) end