27#define WII_FLAG_MOTION_PLUS_CONNECTED (1 << 0)
28#define WII_FLAG_NUNCHUCK_CONNECTED (1 << 1)
29#define WII_FLAG_CALIBRATE_BALANCE_BOARD (1 << 2)
31#define wii_check_flag(flag) (wii_event_flag & (flag))
32#define wii_set_flag(flag) (wii_event_flag |= (flag))
33#define wii_clear_flag(flag) (wii_event_flag &= ~(flag))
296 return wiiBalanceBoardRaw[
pos];
409 return (wiiState & 0x08);
440 bool activeConnection;
454 bool unknownExtensionConnected;
455 bool extensionConnected;
456 bool checkBatteryLevel;
457 bool motionPlusInside;
470 void initExtension1();
471 void initExtension2();
473 void statusRequest();
476 void readExtensionType();
478 void readWiiBalanceBoardCalibration();
480 void checkMotionPresent();
481 void initMotionPlus();
482 void activateMotionPlus();
490 bool activateNunchuck;
491 bool motionValuesReset;
499 void enableIRCamera1();
500 void enableIRCamera2();
501 void writeSensitivityBlock1();
502 void writeSensitivityBlock2();
503 void write0x08Value();
bool wiiBalanceBoardConnected
bool wiiUProControllerConnected
uint16_t getWeightRaw(BalanceBoardEnum pos)
bool getButtonPress(ButtonEnum b)
void ACLData(uint8_t *ACLData)
uint8_t getAnalogHat(HatEnum a)
void setLedToggle(LEDEnum a)
float getWeight(BalanceBoardEnum pos)
bool getButtonClick(ButtonEnum b)
void setLedRaw(uint8_t value)
uint8_t getBatteryLevel()