Before we start to draw the cube and use the controller, we have to talk
about an aspect we have ignored until now: jitter. Like the game controller
we built in Chapter 6, Building a Motion-Sensing Game Controller,
on page 132, the Nunchuk acceleration data has to be stabilized. We
use the same technique as in Section 6.4, Finding and Polishing Edge
Val ues , on page 137, but this time we’ll implement it in our Processing
code instead of on the Arduino: