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: src/cMatrice.cpp
- Revision:
- 3:493dd1cf30a4
- Parent:
- 1:ab5f440f4156
- Child:
- 4:b7a46af55574
- Child:
- 6:0e6c1cccb275
--- a/src/cMatrice.cpp Wed Mar 30 09:08:37 2016 +0000 +++ b/src/cMatrice.cpp Wed Mar 30 10:22:07 2016 +0000 @@ -9,12 +9,13 @@ _matrice[i] = new unsigned char[8]; } + for(unsigned char i = 0; i < 8 ; i++) { for(unsigned char j = 0; j < 8 ; j ++) { - _matrice[i][j] = COULEUR_LED_ORANGE; + _matrice[i][j] = COULEUR_LED_BLEU_FONCE; } } } @@ -26,12 +27,13 @@ //dtor } -// GETTER -unsigned char ** cMatrice::getMatrice() +/*// GETTER +unsigned char cMatrice::getMatrice() { return _matrice; -} +}*/ + // SETTER void cMatrice::updateMatrice(cForme &f) { @@ -42,10 +44,11 @@ { DigitalOut cs(p14); SPI matrice(p11,p12,p13); - + _matrice[5][2] = COULEUR_LED_ORANGE; - cs=0; + cs = 0; wait(0.5); + for(char i=0; i<8; i++) { for(char j=0; j<8; j++) @@ -54,7 +57,7 @@ } } wait(0.5); - cs=1; + cs = 1; }