Control library for the Sparkfun Entertainment Trackballer breakout board.
Revision 5:0abcaea1fb07, committed 2011-02-19
- Comitter:
- Nakor
- Date:
- Sat Feb 19 19:57:07 2011 +0000
- Parent:
- 4:3d1791d6608a
- Child:
- 6:c0ebd0f8f873
- Commit message:
Changed in this revision
trackballer.cpp | Show annotated file Show diff for this revision Revisions of this file |
trackballer.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/trackballer.cpp Sat Feb 19 19:54:58 2011 +0000 +++ b/trackballer.cpp Sat Feb 19 19:57:07 2011 +0000 @@ -58,7 +58,7 @@ /******************/ -void trackballer::getDirection(float &xPosition, float &yPosition, char &button) +void trackballer::getState(float &xPosition, float &yPosition, char &button) { _buttonState = _buttonPin->read();
--- a/trackballer.h Sat Feb 19 19:54:58 2011 +0000 +++ b/trackballer.h Sat Feb 19 19:57:07 2011 +0000 @@ -28,7 +28,7 @@ trackballer(PinName button, PinName right, PinName down, PinName left, PinName up, PinName red, PinName green, PinName blue, PinName white); - void getDirection(float &xPosition, float &yPosition, char &button); + void getState(float &xPosition, float &yPosition, char &button);