Mini projet LOO
Dependencies: mbed APDS_9960 mbed-rtos
Home du projet
Diff: src/cSPI.cpp
- Revision:
- 40:08490d120ec4
- Parent:
- 38:418278e5eb6b
--- a/src/cSPI.cpp Sun Apr 24 21:35:57 2016 +0000 +++ b/src/cSPI.cpp Sun Apr 24 22:11:55 2016 +0000 @@ -78,31 +78,23 @@ //Sorties: aucune. void cSPI::envoyerMatrice(cMatrice & mat) { - Serial pc(USBTX, USBRX); _cs = 0; wait_ms(1); for(unsigned char i = 0; i < mat.getCol(); i++) { for(unsigned char j = 0; j < mat.getLig()/2; j ++) { _spi.write(mat.getValTab(i, j)); if(mat.getValTab(i, j)) { - pc.printf("1|"); } else { - pc.printf("0|"); } } - pc.printf("\n"); } - pc.printf("\n"); for(unsigned char i = 0; i < mat.getCol(); i++) { for(unsigned char j = mat.getLig()/2; j < mat.getLig(); j ++) { _spi.write(mat.getValTab(i, j)); if(mat.getValTab(i, j)) { - pc.printf("1|"); } else { - pc.printf("0|"); } } - pc.printf("\n"); } wait_ms(1); _cs = 1;