Class WiiNunchuck

java.lang.Object
jpigpio.sensors.WiiNunchuck

public class WiiNunchuck
extends java.lang.Object
Wrapper for WiiNunchuck. The Wii Nunchuck is an I2C device and hence has to be connected to the SDA and SCL pins of the Pi. To use this class:
  • Initialize Pigpio
  • Call initialize()
  • Call readValue()
  • get the data fields ...
author Neil Kolban date 2015-04-30
  • Constructor Summary

    Constructors 
    Constructor Description
    WiiNunchuck​(JPigpio pigpio)  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    byte getAccelX()  
    byte getAccelY()  
    byte getAccelZ()  
    byte getJoyX()  
    byte getJoyY()  
    void initialize()
    Initialize the Nunchuck
    boolean isButtonC()  
    boolean isButtonZ()  
    void readValue()
    Read a value from the Wii Nunchuck.
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait