In the last tutorial, you tested out a simple S3 driving program. In this tutorial, we will expand our remote control possibilities. By utilizing more buttons for more possible maneuvers you can fine-tune your robot's motion.
Remember that if you haven’t recorded the IR Remote button code for a particular button, take a quick run through the main program in the Test the Receiver and Remote tutorial and write down your results.
The code you’ve written should drive the S3 (or control the LEDs and speaker) using buttons 1 - 9, and 0. The S3 will move (or activate a device) only while a particular button is pressed and should stop when it is released.
The list below reflects which button on your remote controls each motion or device. Note that these button maps are assigned assuming you're using a Parallax Brightstar remote.
Does it work the way you thought it would and does it function properly? If not, do a little “debugging” of your code.
Make sure it works the way you thought it would and functions correctly. Did everything work as you expected? If not, find the errors and correct them.