Stop
The vehicle on which the gearbox is built can still be put in one pressure sensor. The drive can still be put on the Lego computer, the stop button, but this stopped the whole program. The memory is then also deleted, so one must restart the gearbox manually be put back into neutral. Otherwise the counter is no longer true.
Input 3 double use
Input 3 is already used to the light sensor. The light sensor can theoretically a value of 0 to 100, but in practice, the very low and high values are not met. A pressure sensor gives only a value 0 or 100 when he connected on a port originally intended for a light sensor. You can in this way two sensors on a parallel port. Since the Lego computer but 3 inputs, this is not a luxury. The highest declared value of the two sensors is recorded by the computer. Normally, the value of the light sensor is passed above unless the stop sensor is pressed.

If the stop sensor is pressed, all engines shut put, there is a beep sound and nothing happens for 60 seconds.

Program

Program created by Martijn van Boven