As said in the title, my main goal is to use 2 led matrix (2 X 8x32 MAX7219) with an Arduino Micro to can make a clock with 2 time zones.
I already done this using an Arduino Uno and my program works with it.
But with the Micro i’ve got 2 problems that i don’t understand. (i use official Micro, not a clone)
To can test my wiring, i use the demo program from MD_MAX72XX lilbrary. the “PrintText exemple”
When defining pin as bellow, no problem, with 1 led matrix, it’s work:
#define CLK_PIN SCK
#define DATA_PIN MOSI
#define CS_PIN SS
But when trying to use pin number in the define, it doesn’t work anymore:
#define CLK_PIN 9
#define DATA_PIN 10
#define CS_PIN 8
I cannot figure out why … this should be the same !
I’m just not able to find on what pin i should connect my second led matrix. i tried to use all other different pin but no one works.
For exemple, on the Arduino Uno, this is my used pin for all i need (2 led matrix, 2 push button and a DS3231 breakout):
13 DISPLAY B CLK
11 DISPLAY B DIN
10 DISPLAY B CS
9 Bouton B
8 DISPLAY A CLK
7 bouton A
6 DISPLAY A DIN
5 DISPLAY A CS
Well, can someone help me for that please ?
(in Attachment i give my program working on Arduino Uno)
Clock.ino (5.3 KB)