mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
statusRequest is now public
This commit is contained in:
parent
5ec8889fa3
commit
219bd50c30
2 changed files with 5 additions and 2 deletions
6
Wii.h
6
Wii.h
|
@ -204,6 +204,10 @@ public:
|
|||
*/
|
||||
void setLedStatus();
|
||||
|
||||
/**
|
||||
* Call this to update battery level and Wiimote state
|
||||
*/
|
||||
void statusRequest();
|
||||
/**
|
||||
* Return the battery level of the Wiimote.
|
||||
* @return The battery level in the range 0-255.
|
||||
|
@ -211,7 +215,6 @@ public:
|
|||
uint8_t getBatteryLevel() {
|
||||
return batteryLevel;
|
||||
};
|
||||
|
||||
/**
|
||||
* Return the Wiimote state.
|
||||
* @return See: http://wiibrew.org/wiki/Wiimote#0x20:_Status.
|
||||
|
@ -438,7 +441,6 @@ private:
|
|||
/* HID Commands */
|
||||
void HID_Command(uint8_t* data, uint8_t nbytes);
|
||||
void setReportMode(bool continuous, uint8_t mode);
|
||||
void statusRequest();
|
||||
|
||||
void writeData(uint32_t offset, uint8_t size, uint8_t* data);
|
||||
void initExtension1();
|
||||
|
|
|
@ -238,6 +238,7 @@ getPitch KEYWORD2
|
|||
getRoll KEYWORD2
|
||||
getYaw KEYWORD2
|
||||
PAIR KEYWORD2
|
||||
statusRequest KEYWORD2
|
||||
getBatteryLevel KEYWORD2
|
||||
getWiiState KEYWORD2
|
||||
|
||||
|
|
Loading…
Reference in a new issue