use Libraries.Robots.Lego.Motor//tim cane 1use Libraries.Robots.Lego.TouchSensoruse Libraries.Robots.Lego.Buttonuse Libraries.Robots.Lego.SoundMotor motorTouchSensor touchButton buttonSound soundmotor:SetSpeed("A", 25)//cane motormotor:SetSpeed("B", 35)//drive motormotor:SetSpeed("C", 35)//drive motor//motor:SetSpeed("D", 10)//cane motorsound:SetVolume(25)repeat until touch:IsPressed()=true motor:RotateForward("B") motor:RotateForward("C") motor:RotateByDegrees("A",90) motor:Wait("A") motor:RotateByDegrees("A",-90) motor:Wait("A") sound:PlayTone(220,1000)endmotor:Stop("A")motor:Stop("B")motor:Stop("C")sound:Buzz()sound:BeepSequenceDown()