This chapter’s project is about attaching the Nintendo Wii Nunchuk to the Raspberry Pi. The Nunchuk has two buttons; an X-Y joystick; and an X, Y, and Z accelerometer. The sensor data is communicated through the I2C bus. Let’s have some fun using a Nunchuk as a pointing device for the X Window System desktop.
The challenge before us breaks down into two overall categories:
Since you’ve mastered I2C communications in other parts of this book, we’ll focus more on the Nunchuk technical ...