BastatDoreau / Mbed 2 deprecated MoveYourTetris

Dependencies:   mbed APDS_9960 mbed-rtos

Dependents:   MoveYourTetris_OK

Revision:
23:298a1314fc81
Parent:
21:f0cf4173ecdb
Child:
24:9f3005f1ba96
diff -r 16863912486d -r 298a1314fc81 include/cJeu.h
--- a/include/cJeu.h	Thu Apr 14 13:38:59 2016 +0000
+++ b/include/cJeu.h	Fri Apr 15 12:13:34 2016 +0000
@@ -11,6 +11,8 @@
 #include "cSPI.h"
 #include "cBoussole.h"
 
+#define START_THREAD 1
+
 class cJeu 
 {
     private:
@@ -18,6 +20,8 @@
     cForme *_ptrForme;
     cSPI _spi;
     cBoussole *_boussole;
+    unsigned char *_detec;
+
     ////////////////////////////////////////////////////
 Ticker tick;
     //InterruptIn _interrupt;
@@ -34,6 +38,7 @@
     // GETTERS
     cMatrice* get_matrice();
     unsigned char get_score();
+    unsigned char *getDetec();
     // METHODES
     void initialiser();
     void nouvellePiece();
@@ -41,6 +46,7 @@
     void nouvelleManche();
     int partieEnCours();
     void fin();
+    void detectionMouvement(void const *args);
     
 };