This is the Mexican Standoff prototype made by Francisco Martin and Andrew Smith. Please refer to the following link for instructions on hardware hookup: https://developer.mbed.org/users/fomartin/notebook/mexican-standoff-reaction-game/

Dependencies:   SDFileSystem mbed-rtos mbed wave_player 4DGL-uLCD-SE PinDetect

Committer:
fomartin
Date:
Mon Mar 14 03:04:08 2016 +0000
Revision:
0:75716bd37804
Mexican Standoff Prototype;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
fomartin 0:75716bd37804 1 #include "PinDetect.h"
fomartin 0:75716bd37804 2 #include "SDFileSystem.h"
fomartin 0:75716bd37804 3 #include "wave_player.h"
fomartin 0:75716bd37804 4 #include "rtos.h"
fomartin 0:75716bd37804 5
fomartin 0:75716bd37804 6 class Music
fomartin 0:75716bd37804 7 {
fomartin 0:75716bd37804 8 private:
fomartin 0:75716bd37804 9 wave_player *speaker;
fomartin 0:75716bd37804 10 Thread *main_music_thread;
fomartin 0:75716bd37804 11
fomartin 0:75716bd37804 12 public:
fomartin 0:75716bd37804 13 Music(wave_player &speaker_arg);
fomartin 0:75716bd37804 14
fomartin 0:75716bd37804 15 void playMainMusic(); //starts thread to play main music
fomartin 0:75716bd37804 16 void stopMainMusic(); //ends thread to play main music
fomartin 0:75716bd37804 17
fomartin 0:75716bd37804 18 //add other audio clip methods here
fomartin 0:75716bd37804 19 /*
fomartin 0:75716bd37804 20 *
fomartin 0:75716bd37804 21 *
fomartin 0:75716bd37804 22 */
fomartin 0:75716bd37804 23
fomartin 0:75716bd37804 24 protected:
fomartin 0:75716bd37804 25 static void thread_helper(const void *args);
fomartin 0:75716bd37804 26 void main_music(); //actually plays the main music on loop
fomartin 0:75716bd37804 27 };