Generalized adaptation of the WiiChuk_compat library.
Fork of WiiChuk_compat by
Diff: WiiChuck.h
- Revision:
- 5:be9ce129de7c
- Parent:
- 4:e39bbb89c4e9
--- a/WiiChuck.h Sun Dec 21 18:24:50 2014 +0000 +++ b/WiiChuck.h Mon Dec 22 03:32:51 2014 +0000 @@ -123,6 +123,14 @@ * Detach the callback and stop polling the nunchuck */ void detach(); + + /** + * Gets the value for the x and y position of the joystick when it is in the neutral position. + * + * @param centerX Pointer to a uint8_t that will hold the center x value + * @param centerY Pointer to a uint8_t that will hold the center y value + */ + bool calibrateJoystickNeutralPosition(uint8_t* centerX, uint8_t* centerY); private: void getValues();