Ben Evans / Mbed 2 deprecated Defender_Game

Dependencies:   mbed

Revision:
65:daa792a09e1f
Parent:
27:8bb2bd97c319
Child:
82:3211b31e9421
--- a/Spaceship/Spaceship_test.h	Thu May 21 14:26:23 2020 +0000
+++ b/Spaceship/Spaceship_test.h	Thu May 21 17:21:53 2020 +0000
@@ -10,6 +10,7 @@
  */
 bool spaceship_movement_test(Direction d_, int expected_x,int expected_y){
     // Objects reqired for test 
+    FXOS8700CQ accelerometer(I2C_SDA,I2C_SCL);
     Gamepad pad;
     Spaceship spaceship;
     
@@ -35,8 +36,7 @@
         printf ( "Failed! value = %d,%d (expecting  %d,%d)\n", finish_x_postion, 
         finish_y_postion, expected_x, expected_y);
         return false;
-    }
-    
+    }  
 }
 
 bool spaceship_draw_test(Direction d_, int expected_pixel_status,