Simple demo to drive a 8x8-as LED matrix by a MAX7219 LED driver IC. After initialisation two characters (H and W) are displayed alternatively. The MAX7219 IC is driven by hardware SPI: SPI0 module at PTD1, PTD2, PTD3.

Dependencies:   mbed

Fork of 06_spi_max7219_led8x8 by hobbielektronika

Revision:
1:1112483329da
Parent:
0:bd34a367f642
--- a/main.cpp	Tue Nov 24 06:41:43 2015 +0000
+++ b/main.cpp	Mon Nov 06 11:57:43 2017 +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(PA_7, PA_6, PA_5);          // Arduino compatible MOSI, MISO, SCLK
+DigitalOut cs(D2);                // Chip select
 
 const unsigned char led1[]= {
     0xFF,0x18,0x18,0x18,0x18,0x18,0x18,0xFF