Open MaxSKash opened 2 years ago
Hi, I have the same problem, did you solve it ?
This fork is OK with espressif32@5.1.0 https://github.com/MiyukiDark/DMD32
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
Compiled, not working. Working espressinf32@3.5.0