orc
Class Nunchuck

java.lang.Object
  extended by orc.Nunchuck

public class Nunchuck
extends java.lang.Object

Accesses Nintendo Wii Nunchuck via I2C; use the 3.3V port


Constructor Summary
Nunchuck(Orc orc)
           
 
Method Summary
 int[] readAccelerometers()
           
 int readButtons()
           
 int[] readJoystick()
           
 int[] readState()
          Read the whole nuncheck state vector at once; a vector is returned containing joyx, joyy, accelx, accely, accelz, buttons
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Nunchuck

public Nunchuck(Orc orc)
Method Detail

readState

public int[] readState()
Read the whole nuncheck state vector at once; a vector is returned containing joyx, joyy, accelx, accely, accelz, buttons


readJoystick

public int[] readJoystick()

readAccelerometers

public int[] readAccelerometers()

readButtons

public int readButtons()