Game controller for FUJI CAR driving game. Dominic Cincione, Zach Gima, Max Micali.
Dependencies: DebounceIn USBDevice mbed
Fork of mouseTest by
Diff: main.cpp
- Revision:
- 1:7b6bc8042945
- Parent:
- 0:e23fabfe5cbd
- Child:
- 2:c67ad98122e0
--- 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; }