touch screen

Dependencies:   TSI

Dependents:   test_emg Robot2 Robot2mooiemanier Robot2false ... more

Fork of TouchButton by Viraj Jayaweera

Files at this revision

API Documentation at this revision

Comitter:
Tanja2211
Date:
Thu Oct 30 14:05:12 2014 +0000
Parent:
3:6153458ce46b
Commit message:
new touch pad;

Changed in this revision

TouchButton.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/TouchButton.cpp	Tue Oct 28 21:27:14 2014 +0000
+++ b/TouchButton.cpp	Thu Oct 30 14:05:12 2014 +0000
@@ -9,9 +9,9 @@
 
     if(tsi.readPercentage()<0.01)
         return 0;
-    else if(tsi.readPercentage()>0.67)
+    else if(tsi.readPercentage()>0.75)
         return 3;
-    else if(tsi.readPercentage()>0.33)
+    else if(tsi.readPercentage()>0.25)
         return 2;
     else
         return 1;