dfg

Dependencies:   USBDevice mbed

Revision:
1:7b6bc8042945
Parent:
0:e23fabfe5cbd
--- a/main.cpp	Sun Sep 28 03:24:31 2014 +0000
+++ b/main.cpp	Sun Sep 28 03:29:45 2014 +0000
@@ -45,16 +45,16 @@
     
 while(1) {
         x = (xAxis.read()-xStatic)*50;
-        y = (yAxis.read()-yStatic)*-50;
+        y = (yAxis.read()-yStatic)*(-50);
         
         mouse.move(x,y);
         
-        if(D8){
+        if(go==0){
             led1 = 0;
             led2 = 1;
             }
             
-        if(!D8){
+        if(go==1){
             led1 = 1;
             led2 = 0;
             }