Cricket Tutorial — Lamps and Motors Together

You can put several commands in sequence to turn on the output ports one after the other. Also, the command ab, selects both outpus together.

turns on output A and B for 1 second.

turn on output A for 1 second, then output B for 1 second.

  The first time the Virtual Cricket loads there will be a short delay.
Please be patient.

Now, you type. Enter a command to turn A on for 2 seconds, then reverse direction, then go for 2 seconds more. Then click the “Try it” button to try it out.


Now try this. Turn on both the motor and lamp for 1 second, then just the lamp for 1 second more:


BACK: Using Lamps

UP to index

NEXT: The Repeat Command