No big surprises here:
we define a global Nunchuk object and initialize
it in the setup( ) function. In loop( ), we call update( ) to request the
controller’s current status and output all attributes to the serial port.
Compile and upload the program, and then open the serial monitor and
play around with the Nunchuk. Move the stick, move the controller, and
press the buttons, and you should see something like this: