Note: requires the improved Arduino Nunchuk-Library: https://github.com/GabrielBianconi/ArduinoNunchuk
This sketch lets you use a Wii Nunchuk as a mouse.
-
Download the improved Arduino Nunchuk-Library and upload the sketch to your board.
-
Connect the Nunchuk to the Arduino
When using the Arduino Micro connect Clock to Pin 3 and Data to Pin 2
C: leftclick
C + Z button: rightclick
Joystick: move mouse
Joystick + Z (up and down): scroll
Joystick + Z (left and right): scroll once