USB_Host_Shield_2.0
|
#include <Wii.h>
Public Member Functions | |
WII (BTD *p, bool pair=false) | |
virtual void | ACLData (uint8_t *ACLData) |
virtual void | Run () |
virtual void | Reset () |
virtual void | disconnect () |
bool | getButtonPress (Button b) |
bool | getButtonClick (Button b) |
uint8_t | getAnalogHat (Hat a) |
double | getPitch () |
double | getRoll () |
double | getYaw () |
void | setAllOff () |
void | setRumbleOff () |
void | setRumbleOn () |
void | setRumbleToggle () |
void | setLedOff (LED a) |
void | setLedOn (LED a) |
void | setLedToggle (LED a) |
void | setLedStatus () |
uint8_t | getBatteryLevel () |
uint8_t | getWiiState () |
Public Attributes | |
bool | wiimoteConnected |
bool | nunchuckConnected |
bool | motionPlusConnected |
double | wiiMotePitch |
double | wiiMoteRoll |
double | nunchuckPitch |
double | nunchuckRoll |
int16_t | accX |
int16_t | accY |
int16_t | accZ |
double | gyroPitch |
double | gyroRoll |
double | gyroYaw |
double | pitchGyroSpeed |
double | rollGyroSpeed |
double | yawGyroSpeed |
uint16_t | pitchGyroScale |
uint16_t | rollGyroScale |
uint16_t | yawGyroScale |
int16_t | gyroYawRaw |
int16_t | gyroRollRaw |
int16_t | gyroPitchRaw |
int16_t | gyroYawZero |
int16_t | gyroRollZero |
int16_t | gyroPitchZero |
WII::WII | ( | BTD * | p, |
bool | pair = false |
||
) |
|
virtual |
Reimplemented from BluetoothService.
|
virtual |
Reimplemented from BluetoothService.
uint8_t WII::getAnalogHat | ( | Hat | a | ) |
|
inline |
bool WII::getButtonClick | ( | Button | b | ) |
bool WII::getButtonPress | ( | Button | b | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Reimplemented from BluetoothService.
|
virtual |
Reimplemented from BluetoothService.
void WII::setAllOff | ( | ) |
void WII::setLedOff | ( | LED | a | ) |
void WII::setLedOn | ( | LED | a | ) |
void WII::setLedStatus | ( | ) |
void WII::setLedToggle | ( | LED | a | ) |
void WII::setRumbleOff | ( | ) |
void WII::setRumbleOn | ( | ) |
void WII::setRumbleToggle | ( | ) |
int16_t WII::accX |
int16_t WII::accY |
int16_t WII::accZ |
double WII::gyroPitch |
int16_t WII::gyroPitchRaw |
int16_t WII::gyroPitchZero |
double WII::gyroRoll |
int16_t WII::gyroRollRaw |
int16_t WII::gyroRollZero |
double WII::gyroYaw |
int16_t WII::gyroYawRaw |
int16_t WII::gyroYawZero |
bool WII::motionPlusConnected |
bool WII::nunchuckConnected |
double WII::nunchuckPitch |
double WII::nunchuckRoll |
uint16_t WII::pitchGyroScale |
double WII::pitchGyroSpeed |
uint16_t WII::rollGyroScale |
double WII::rollGyroSpeed |
bool WII::wiimoteConnected |
double WII::wiiMotePitch |
double WII::wiiMoteRoll |
uint16_t WII::yawGyroScale |
double WII::yawGyroSpeed |