Qudor-Engineer / DMD32

A library for driving the Freetronics 512 pixel dot matrix LED display "DMD", a 32 x 16 layout using ESP32.
GNU General Public License v3.0
30 stars 20 forks source link

Not work espressinf32@5.0.0 #13

Open MaxSKash opened 2 years ago

MaxSKash commented 2 years ago

Compiled, not working. Working espressinf32@3.5.0

manumdk commented 1 year ago

Hi, I have the same problem, did you solve it ?

manumdk commented 1 year ago

This fork is OK with espressif32@5.1.0 https://github.com/MiyukiDark/DMD32

fernandoyano commented 1 year ago

Hi, the problem is only on init SPI, because MISO is use as OUTPUT on library, I use in espressif32@6.2.0, just change it in DMD32.cpp

//initialise instance of the SPIClass attached to vspi
#ifdef SPI_VSPI
    vspi = new SPIClass(VSPI);
#endif
#ifdef SPI_HSPI
    hspi = new SPIClass(HSPI);
#endif

// initialize the SPI port
//vspi->begin();        // initiate VSPI with the default pinsinitiat VSPI with the defualt pins
//hspi->begin();

digitalWrite(PIN_DMD_A, LOW);   // 
digitalWrite(PIN_DMD_B, LOW);   // 
digitalWrite(PIN_DMD_CLK, LOW); // 
digitalWrite(PIN_DMD_SCLK, LOW);    // 
digitalWrite(PIN_DMD_R_DATA, HIGH); // 
//digitalWrite(PIN_DMD_nOE, LOW);   //

pinMode(PIN_DMD_A, OUTPUT); //
pinMode(PIN_DMD_B, OUTPUT); //
pinMode(PIN_DMD_CLK, OUTPUT);   //
pinMode(PIN_DMD_SCLK, OUTPUT);  //
pinMode(PIN_DMD_R_DATA, OUTPUT);    //
pinMode(PIN_DMD_nOE, OUTPUT);   //

#ifdef SPI_VSPI
    vspi->begin(PIN_DMD_CLK, NULL, PIN_DMD_R_DATA, PIN_DMD_nOE); // Init MISO as NULL
#endif
#ifdef SPI_HSPI
    hspi->begin(PIN_DMD_CLK, NULL, PIN_DMD_R_DATA, PIN_DMD_nOE); // Init MISO as NULL
#endif