Control library for the Sparkfun Entertainment Trackballer breakout board.
Diff: trackballer.h
- Revision:
- 6:c0ebd0f8f873
- Parent:
- 5:0abcaea1fb07
- Child:
- 7:229fc175e05e
--- a/trackballer.h Sat Feb 19 19:57:07 2011 +0000 +++ b/trackballer.h Sat Feb 19 20:31:43 2011 +0000 @@ -17,6 +17,8 @@ #define TRACK_INC 0.01 +#define DEBUG_POSITION 0 + class trackballer { @@ -26,7 +28,7 @@ - trackballer(PinName button, PinName right, PinName down, PinName left, PinName up, PinName red, PinName green, PinName blue, PinName white); + trackballer(PinName button, PinName right, PinName down, PinName left, PinName up, PinName red, PinName green, PinName blue, PinName white, char limits = 0x00); void getState(float &xPosition, float &yPosition, char &button); @@ -66,6 +68,7 @@ char _direction; + char _limits; };