Code sharing
/
mouseTest
dfg
Revision 1:7b6bc8042945, committed 2014-09-28
- 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; }