Jean-Louis Salvat
/
Matrix_8x8_4_afficheurs
affichage MAX7219 4 afficheur 8x8 en SPI 4 in 1 Dot Matrix MAX7219
Diff: main.cpp
- Revision:
- 3:97af1281969a
- Parent:
- 2:675b923da5d2
--- a/main.cpp Wed Jun 08 07:11:52 2022 +0000 +++ b/main.cpp Thu Jun 16 12:09:52 2022 +0000 @@ -7,7 +7,7 @@ #include "mbed.h" #include "lib_matrix.h" -#include "ascii_char.h" +#include "ascii_char_h.h" SPI spi(D11,D12,D13); // Arduino compatible MOSI, MISO, SCLK DigitalOut cs(D14); @@ -50,7 +50,7 @@ char row = (*text++) - 32;//(Text-32)...because the first 32 ASCII character codes are none Printable (control chars) for(int col = 0; col < 8; col++) { - MAX7219_write( col+1, symbol[row][col], chip ); + MAX7219_write( col+1, symbol_h[row][col], chip ); } chip++; @@ -64,7 +64,7 @@ while(chip<nb_chip) { char row = (*current_pointer++) - 32;//(Text-32)...because the first 32 ASCII character codes are none Printable (control chars) for(int col = 0; col < 8; col++) { - MAX7219_write( col+1, symbol[row][col], chip ); + MAX7219_write( col+1, symbol_h[row][col], chip ); } chip++; }