Anyone have the md-max72xx library working?

Hi All,

Anyone used the md-max72xx library with success?

I tried the “GitHub - nliviu/md-max72xx”, compiled okay, but the matrix only lits some dots.

Log:

[Dec 28 13:27:14.954] MD_MAX72XX::begin()
[Dec 28 13:27:14.977] MD_MAX72xx.cpp:257 Initing MAX72xx…
[Dec 28 13:27:14.977] MD_MAX72xx.cpp:261 Using ESP32 SPI settings in mos.yml…
[Dec 28 13:27:14.978] MD_MAX72xx.cpp:294 Sending Max72xx control bytes…
[Dec 28 13:27:14.978] mgos_spi_gpio.c:153 len 1
[Dec 28 13:27:14.978] mgos_spi_gpio.c:159 write 0x0f
[Dec 28 13:27:14.978] mgos_spi_gpio.c:184 read 0xff
[Dec 28 13:27:14.999] mgos_spi_gpio.c:153 len 1
[Dec 28 13:27:14.999] mgos_spi_gpio.c:159 write 0x00
[Dec 28 13:27:14.999] mgos_spi_gpio.c:184 read 0xff
[Dec 28 13:27:15.000] mgos_spi_gpio.c:153 len 1
[Dec 28 13:27:15.002] mgos_spi_gpio.c:159 write 0x0f
[Dec 28 13:27:15.002] mgos_spi_gpio.c:184 read 0xff
[Dec 28 13:27:15.002] mgos_spi_gpio.c:153 len 1
[Dec 28 13:27:15.002] mgos_spi_gpio.c:159 write 0x00
[Dec 28 13:27:15.021] mgos_spi_gpio.c:184 read 0xff
[Dec 28 13:27:15.021] mgos_spi_gpio.c:153 len 1
[Dec 28 13:27:15.021] mgos_spi_gpio.c:159 write 0x0f
[Dec 28 13:27:15.022] mgos_spi_gpio.c:184 read 0xff
…skip…
[Dec 28 13:27:15.866] MD_MAX72xx.cpp:301 Initing MAX72xx inited!

Thanks,
Michael

I don’t have the hardware, but maybe you have to check (and set) the conditions in https://github.com/nliviu/md-max72xx/blob/master/include/MD_MAX72xx_lib.h and https://github.com/nliviu/md-max72xx/blob/master/include/MD_MAX72xx.h

I have already selected my hardware type, which is FC16.

I tried the “max7219-spi” library at https://github.com/mongoose-os-libs/max7219-spi.git, it worked. For the moment I only need to display data in a static way, so I think I will use this instead. However, it would be great if the MD_MAX72XX library works with Mongoose OS.

Thanks,
Michael

I finally have a prototype of my app working. It is written for my elderly at home. Some customization is needed for the max7219-spi library. It can be found at https://github.com/michaelfung/mgos-weather-display if anyone is interested.

Still, I wish I could use the MD_MAX72XX library. Then I can show some alert/reminder message to the user.