TOP

This register is used exclusively for interrupts. It can't be written or read, it may only be used together with setparam and setint.

The top interrupt is triggered whenever a robot moves too close to the top wall. SETPARAM determines the y coordinate at which the interrupt is triggered; by default, it is 20. Note that the directional interrupts are only triggered once when the robot crosses the threshold.