29 #define NUNCHUCK_I2C_ADDR 0x52
74 NUNCHUCK(
int bus, uint8_t addr=NUNCHUCK_I2C_ADDR);
88 bool writeByte(uint8_t reg, uint8_t byte);
98 int readBytes(uint8_t reg, uint8_t *buffer,
int len);
157 mraa_i2c_context m_i2c;
int stickY
Definition: nunchuck.h:124
bool init()
Definition: nunchuck.cxx:93
NUNCHUCK(int bus, uint8_t addr=NUNCHUCK_I2C_ADDR)
Definition: nunchuck.cxx:36
~NUNCHUCK()
Definition: nunchuck.cxx:63
int accelX
Definition: nunchuck.h:130
int readBytes(uint8_t reg, uint8_t *buffer, int len)
Definition: nunchuck.cxx:82
int stickX
Definition: nunchuck.h:118
bool buttonZ
Definition: nunchuck.h:154
int accelZ
Definition: nunchuck.h:142
bool buttonC
Definition: nunchuck.h:148
API for the Wii* Nunchuk controller.
Definition: nunchuck.h:66
void update()
Definition: nunchuck.cxx:107
int accelY
Definition: nunchuck.h:136
bool writeByte(uint8_t reg, uint8_t byte)
Definition: nunchuck.cxx:68