This example shows how the cball NXT can be used with a Lego® NXT.

Example code for programming in RobotC.