A class to handle reading, scaling and filtering horizontal and vertical position, and rise/fall interrupts for the button.
Diff: Joystick.cpp
- Revision:
- 4:beeaa40d49fa
- Parent:
- 0:9c486d50434e
diff -r 83b40e07476f -r beeaa40d49fa Joystick.cpp --- a/Joystick.cpp Tue Sep 28 15:28:18 2010 +0000 +++ b/Joystick.cpp Tue Sep 28 16:32:20 2010 +0000 @@ -16,8 +16,8 @@ min = 0.087; max = 0.98; - midmin = 0.51; - midmax = 0.56; + midmin = 0.49; + midmax = 0.57; if(pos < midmin){ // lower than 0.5 tolerance - backwards