Currently a giant piece of crap, this library is just a quick way to get cheap inputs out of scrap parts. I will fix it up eventually so if you decide to use it now you do so at your own risk. Also, if you are allergic to moronic library names you probably do not want to touch this :)

Revision:
5:e1e14d61dd00
Parent:
4:7e7c93d90d99
--- a/theBadTouch.cpp	Thu Feb 03 15:43:06 2011 +0000
+++ b/theBadTouch.cpp	Thu Feb 03 19:58:19 2011 +0000
@@ -46,7 +46,7 @@
     
     
 
-    if(badPlace() >= 1.0)
+    if(badPlace() >= 0.8)
     {
     /*
         if(_touchCounter < 0x03)
@@ -69,13 +69,16 @@
             t.reset();
             for(int i = 0; i < 20; i++)
             {
-                while(badPlace() >= 1.0)
+                //while(badPlace() >= 0.8)
+                //{
+                if(badPlace() >= 0.8)
                 {
                     if(t.read_ms() > 200)
                     {
                         return 0x02;
                     }
                 }
+                //}
             }
         }
     }
@@ -101,5 +104,7 @@
     float value = *_sense;
     delete _sense;
     
+    printf("Value:  %f\n", value);
+    wait(.5);
     return value;
 }
\ No newline at end of file