Ok. In two weeks of searching and testing, I will write this post in as much detail as possible.
Before I start, please see this link: LINK . It says that not working with YUXIN timer (which is mine), and I am not sure is that says for Arduino project or some other project.
Working in ledmat.ino Sketch.
Displays
Good news that I remembered that I had 3x Max 7219 modules at home, so I connect 2 of them to play safe first. And if I managed, then I can switch to TM1637. Right?
Librarys
First original MD_Parola-master and MD_MAX72XX-master not worked for me. So, the best results gived me a downloaded MD_MAX72XX-main + MD_Parola (downloaded directly from arduino library ver. 3.5.6.).
Problem with Librarys - rotating letters // Hardware SPI connection
On old MD_MAX72XX.h was easy to change, like
#define USE_PAROLA_HW 0
#define USE_FC16_HW 1
But on new one is are defferent, and all lines are in same place, don't know how change this.. It's only says <USE, but use where!?
GENERIC_HW, //< Use 'generic' style hardware modules commonly available.
FC16_HW, //< Use FC-16 style hardware module.
PAROLA_HW, //< Use the Parola style hardware modules.
ICSTATION_HW, //< Use ICStation style hardware module.
So I figure out and resolve that from other Parola example. In ledmat.ino skectch I added
#define HARDWARE_TYPE MD_MAX72XX::FC16_HW
and change from:
MD_Parola P = MD_Parola(CS_PIN, MAX_DEVICES);
to:
MD_Parola P = MD_Parola(HARDWARE_TYPE, CS_PIN, MAX_DEVICES);
That gives me results like on picture bellow. Display ready to show numbers (dots and colon show).
Serial comunication success
At first, when I run ledmat.ino and Serial Monitor, nothin happened. Then I found this code for serial, which was bellow in some loop. I copy it and paste at the top of the code (in void setup, just after Serial Begin).
m2=micros();
toggle=1;
return;
Serial.print(String(arr[i])+"-"); //that was turned off originaly
Then I run Serial Monitor, and whoola, data shows! Not sure is that the right way, but data change when press or turning timer.
Timer is OFF
23:20:55.603 ->
23:20:55.650 -> 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
TURNING TIMER ON- (previsos Time stay and show on timer '0:11.492')
23:23:10.970 -> 100110101011110011010111001101011100110111010011010110001001011001101011101010110101111010
23:23:11.111 -> 100110101011110011010111001101011100110111010011010110011011011001101011101010110101111010
23:23:11.252 -> 100110101011110011010111001101011100110111010011010110001001011001101011101010110101111010
23:23:11.392 -> 100110101011110011010111001101011100110111010011010110001001011001101011101010110101111010
RESET COUNTER to 0:00.000 /TIMER ON
23:24:22.132 -> 100110101011110011011111001101111100110111110011011111001011111001101111111010110101111010
23:24:22.273 -> 100110101011110011011111001101111100110111110011011111001001111001101111111010110101111010
23:24:22.414 -> 100110101011110011011111001101111100110111110011011111001001111001101111111010110101111010
23:24:22.523 -> 100110101011110011011111001101111100110111110011011111001001111001101111111010110101111010
23:24:22.664 -> 100110101011110011011111001101111100110111110011011111001001111001101111111010110101111010
START COUNTING
23:25:19.344 -> 100110101011110011011111001101101100110101110011011101001011101001101001011010110101111010
23:25:19.484 -> 100110101011110011011111001101101100110110110011011000011001101001101100011010110101111010
23:25:19.641 -> 100110101011110011011111001101101100110100110011010110011010011001101011101010110101111010
23:25:19.734 -> 100110101011110011011111001101101100110101010011011010011011011001101001011010110101111010
23:25:19.875 -> 100110101011110011011111001101101100110110010011010100001010111001101100011010110101111010
23:25:20.016 -> 100110101011110011011111001101101100110100010011011110001011111001101011101010110101111010
23:25:20.125 -> 100110101011110011011111001101101100110101100011011111001000110001101110101010110101111010
23:25:20.266 -> 100110101011110011011111001101001100110111110011010011001011110001101100011010110101111010
23:25:20.406 -> 100110101011110011011111001101001100110101110011011001001000001001101011101010110101111010
23:25:20.516 -> 100110101011110011011111001101001100110110110011010110001001001001101110101010110101111010
23:25:20.656 -> 100110101011110011011111001101001100110111010011010111001001001001101100011010110101111010
23:25:20.750 -> 100110101011110011011111001101001100110101010011011100001010101001101011101010110101111010
23:25:20.922 -> 100110101011110011011111001101001100110110010011010000001011101001101110101010110101111010
STOP TIMER (Time show 0:14.319)
23:25:43.922 -> 100110101011110011010111001101110100110100110011010111001010101001101100011010110101111010
23:25:44.063 -> 100110101011110011010111001101110100110100110011010111001000101001101100011010110101111010
23:25:44.172 -> 100110101011110011010111001101110100110100110011010110001000101001101100011010110101111010
23:25:44.313 -> 100110101011110011010111001101110100110100110011010110001000101001101100011010110101111010
23:25:44.453 -> 100110101011110011010111001101110100110100110011010111001000101001101100011010110101111010
TURN OFF TIMER
23:27:49.413 -> 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
23:27:49.522 -> 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
23:27:49.616 -> 111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000
Conclusion
Serial communication working, but not showing a number on display. Maybe is reason because this serial code must working at the bottom and show data from there, but not showing. Or maybe reason I set just 2 displays, and need 5x. Maybe need another pin change (one weeks I needed to figure out that pin 12 not working, and 13 working for CLK!!).
Or just don't working on my Yuxin timer, but I don't think so.
It seems I am so close now.