Skip to Content
Experimenting with Raspberry Pi
book

Experimenting with Raspberry Pi

by Warren W. Gay
November 2014
Beginner
248 pages
4h 40m
English
Apress
Content preview from Experimenting with Raspberry Pi

CHAPTER 3

image

Nunchuk-Mouse

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.

Project Overview

The challenge before us breaks down into two overall categories:

  • The I2C data communication details of the Nunchuk device
  • Inserting the sensed data into the X Window System desktop event queue

Since you’ve mastered I2C communications in other parts of this book, we’ll focus more on the Nunchuk technical ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Adventures in Raspberry Pi, 2nd Edition

Adventures in Raspberry Pi, 2nd Edition

Carrie Anne Philbin
Learning Raspberry Pi

Learning Raspberry Pi

Samarth Shah, Serge Schneider

Publisher Resources

ISBN: 9781484207697Purchase book