|
|
|
|
{ Lego Programmable Brick } Here are three programs I wrote. They are in order from
simplest to most complicated. I have written a description of what
happens with the block for each program. I suggest that if you do
copy and then download my programs to your RCX that you use the
bumper car model, as I did.
Program #1- The green light just means to begin the set of commands. It is the first step that you have to have when writing your program. Next, I told the motor connected to output A to go forward with a power level of five. Confused? Well, on the RCX there are different output ports that tell certain blocks or motors to do certain things. The power level just means that the motor will turn at the highest power it can, so the motor will turn fast. On this program, output ports A and C are the wheels of the bumper car. Then, output C will go backward at a power level of five. This command will make the car go forward. The next picture means that when the yellow button is pushed in at port one, the next step will happen. This next step makes the RCX play a sound. Then all ports will stop, causing the bumper car to become still. The red light means that the program is finished.
|
|