USB_Host_Shield_2.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Public Attributes | List of all members
WII Class Reference

#include <Wii.h>

Inheritance diagram for WII:
Inheritance graph
[legend]
Collaboration diagram for WII:
Collaboration graph
[legend]

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
 

Constructor & Destructor Documentation

WII::WII ( BTD p,
bool  pair = false 
)

Member Function Documentation

void WII::ACLData ( uint8_t *  ACLData)
virtual

Reimplemented from BluetoothService.

void WII::disconnect ( )
virtual

Reimplemented from BluetoothService.

uint8_t WII::getAnalogHat ( Hat  a)
uint8_t WII::getBatteryLevel ( )
inline
bool WII::getButtonClick ( Button  b)
bool WII::getButtonPress ( Button  b)
double WII::getPitch ( )
inline
double WII::getRoll ( )
inline
uint8_t WII::getWiiState ( )
inline
double WII::getYaw ( )
inline
void WII::Reset ( )
virtual

Reimplemented from BluetoothService.

void WII::Run ( )
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 ( )

Member Data Documentation

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

The documentation for this class was generated from the following files: