This program beeps, runs Lurch-1, then beeps again.
The NXT can also be used to play music. By placing notes manually custom songs
can be created.
When run, this code will cause a car to "snake" forward in wide arcs.
The length of the turns can be modified by changing either the time or motor power.
This code uses two very important coding commands, Case Structures and Loops.
The touch sensor Switch causes Motor A to go forward if the touch sensor
is released and backward if it is pressed. The Loop causes the Switch
to loop infinitely.
This code illustrates the Wait-for-Push command. When a touch sensor
on Port 1 is pressed, Motor A will stop.