Go Down

Topic: 8x64 LED Martix MAX7119 and ESP-01 (Read 217 times) previous topic - next topic

Alkot


Hello Marco and all Others.)))


Can I try ESP-01 with MAX7119?
It has 4 GPIO pins:  0, 1(TX), 2  and 3(RX) and none of them CS CLK MOSI pins!
So I could not use SPI.h and  MD_MAX72XX(CS_PIN, MAX_DEVICES) function.
And will use MD_MAX72XX(DATA_PIN, CLK_PIN, CS_PIN, MAX_DEVICES) function.
Will it work like this?
What to do to continue using SPI.h?
If I would use SPI.h, Adafruit_GFX.h and Max72xxPanel.h, can i set DATA_PIN, CLK_PIN, CS_PIN "around" SPI.h?
Max72xxPanel.h does  not have function like MD_MAX72XX(DATA_PIN, CLK_PIN, CS_PIN, MAX_DEVICES)

Thank you

marco_c

You will need to use the class initialiser with the arbitrary pins (ie, not using SPI.h).

Quote
And will use MD_MAX72XX(DATA_PIN, CLK_PIN, CS_PIN, MAX_DEVICES) function.
Yes this is the right approach. It will be slower than the hardware SPI but should work.

Can't give advice about the other libraries.
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

ieee488

Why limit yourself to the ESP-01?

Alkot

You will need to use the class initialiser with the arbitrary pins (ie, not using SPI.h).
Sorry, could not find what it means. "class initialiser with the arbitrary pins" - my knowledge is not so deep yet
Intend just use
Tx = GPIO 1
Rx = GPIO 3
will disconnect/connect while flashing


marco_c

The md_max72xx initialisation the specifies the pin numbers.
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

Alkot

The md_max72xx initialisation the specifies the pin numbers.
Than you. That is very good (against Max72xxPanel.h) but still busy to make Cyrillic work with md_max72xx. Particularly with scrollText(char *p)/

Go Up