dfg

Dependencies:   USBDevice mbed

Files at this revision

API Documentation at this revision

Comitter:
dpcinci
Date:
Sun Sep 28 03:29:45 2014 +0000
Parent:
0:e23fabfe5cbd
Commit message:
kj

Changed in this revision

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