nikos chalikias
/
n-bed_06_spi_max7219_led8x8
simple test of old MAX7219 board and new n-BED nBlock
Revision 1:f4a999754fcc, committed 2020-11-18
- Comitter:
- chalikias
- Date:
- Wed Nov 18 10:43:16 2020 +0000
- Parent:
- 0:bd34a367f642
- Commit message:
- test 7219 on LPC1768 n-Bed nBlock
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r bd34a367f642 -r f4a999754fcc main.cpp --- a/main.cpp Tue Nov 24 06:41:43 2015 +0000 +++ b/main.cpp Wed Nov 18 10:43:16 2020 +0000 @@ -7,8 +7,8 @@ #include "mbed.h" -SPI spi(PTD2, PTD3, PTD1); // Arduino compatible MOSI, MISO, SCLK -DigitalOut cs(PTD0); // Chip select +SPI spi(p5, p6, p7); // Arduino compatible MOSI, MISO, SCLK +DigitalOut cs(p8); // Chip select const unsigned char led1[]= { 0xFF,0x18,0x18,0x18,0x18,0x18,0x18,0xFF