A class to handle reading, scaling and filtering horizontal and vertical position, and rise/fall interrupts for the button.

Files at this revision

API Documentation at this revision

Comitter:
alex89_2
Date:
Tue Sep 28 16:32:20 2010 +0000
Parent:
3:83b40e07476f
Commit message:
Updated scale values - 0.51 midmin to 0.49, 0.55 midmax to 0.57

Changed in this revision

Joystick.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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