Mini projet LOO

Dependencies:   mbed APDS_9960 mbed-rtos

Dependents:   MoveYourTetris_OK

Home du projet

src/main.cpp

Committer:
Willheisen
Date:
2016-04-14
Revision:
21:f0cf4173ecdb
Parent:
19:9e3551d418d5
Child:
22:16863912486d

File content as of revision 21:f0cf4173ecdb:

#include "mbed.h"
#include "cJeu.h"


int main()
{
    ////////////////////////////////////////
    Serial pc(USBTX, USBRX);
    //cSPI spi;
    //spi.initSPI(100000, 8, 3);
    cJeu jeu(8,8);
    //cMatrice * mat = new cMatrice(8,8);
    jeu.initialiser();
    //jeu.nouvellePiece();
    while(1)
    {
        jeu.partieEnCours();
    }
    ///////////////////////////////
    ///A VOIR
    jeu.fin();

   /*
    //Déplacement
    ptrForme->deplacementBas();
    mat->updateMatrice();
    spi.envoyerMatrice(*mat);
        wait(0.5); 
     
    //Rotation
    ptrForme->rotationHoraire();
    mat->updateMatrice();
    spi.envoyerMatrice(*mat);
     wait(0.5);
*/

}