//Connect a rotation sensor to sensor#1 //Connect a geared motor to RCX output A and use it to drive the rotation sensor int x, x1; task main() { x = 0; x1 = 0; SetSensor(SENSOR_1,SENSOR_ROTATION); SetUserDisplay (x1, 0); ClearSensor(SENSOR_1); start display; OnFwd(OUT_A); Wait(6000); Off(OUT_A); } task display() { while(true) { x = SENSOR_1/16; x1=x; } }