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

Example code for programming in NXC.