test 1 doc

Dependencies:   mbed Gamepad2

Revision:
14:58887d7e1072
Parent:
13:cb5ed2f0cbd5
--- a/Coin/Coin.cpp	Wed May 27 04:36:22 2020 +0000
+++ b/Coin/Coin.cpp	Wed May 27 07:48:27 2020 +0000
@@ -30,25 +30,31 @@
     }
 
     if(side ==1 && _y <= HEIGHT/3) {
+        pad.leds_off();
         pad.led(1, 0.5);
     }
 
-    if(side ==1 && _y < HEIGHT /3 && _y >= HEIGHT/3) {
+    if(side ==1 && _y < HEIGHT *2/3 && _y >= HEIGHT/3) {
+        pad.leds_off();
         pad.led(2, 0.5);
     }
 
-    if(side ==1 && _y >= HEIGHT/3) {
+    if(side ==1 && _y >= HEIGHT*2/3) {
+        pad.leds_off();
         pad.led(3, 0.5);
     }
     if(side ==0 && _y <= HEIGHT/3) {
+        pad.leds_off();
         pad.led(4, 0.5);
     }
 
-    if(side ==0 && _y < HEIGHT /3 && _y >= HEIGHT/3) {
+    if(side ==0 && _y < HEIGHT* 2/3 && _y >= HEIGHT/3) {
+        pad.leds_off();
         pad.led(5, 0.5);
     }
 
-    if(side ==0 && _y >= HEIGHT/3) {
+    if(side ==0 && _y >= HEIGHT*2/3) {
+        pad.leds_off();
         pad.led(6, 0.5);
     }
 }