Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed APDS_9960 mbed-rtos
Diff: include/cJeu.h
- 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); };