Updated Space Invaders on the mbed. Improved upon Michael Son's "Mbed Space Invaders" at https://os.mbed.com/users/michaeljson/notebook/mbed-space-invaders/.

Dependencies:   mbed wave_player mbed-rtos 4DGL-uLCD-SE SparkfunAnalogJoystick SDFileSystem LSM9DS1_Library_cal_updated

Fork of Two-PlayerSpaceInvaders by William Minix

test

Revision:
9:c22613b0007a
Parent:
8:27c4345be3db
Child:
10:1eeb21ef7b2c
--- a/main.cpp	Fri Apr 16 17:28:52 2021 +0000
+++ b/main.cpp	Fri Apr 16 17:29:09 2021 +0000
@@ -493,7 +493,7 @@
     while(1) {
         mbedLock.lock();
         while(numPlayers == 1 || !secondMbed.readable()) {
-             mbed.unlock();
+             mbedLock.unlock();
              //pc.printf("yielding");
              Thread::yield(); // with one player, thread is unneeded and should yield.
         }