This example shows how to use shift registers and case structures to produce an effect similar to acceleration. If the sensor is pressed, the motors stop, but otherwise power is slowly added to the motors.