Update ESP32-HUB75-MatrixPanel-I2S-DMA.h
This commit is contained in:
parent
8337c7cf7e
commit
ace8d938ee
1 changed files with 6 additions and 1 deletions
|
@ -202,7 +202,7 @@ struct HUB75_I2S_CFG {
|
||||||
/**
|
/**
|
||||||
* I2S clock speed selector
|
* I2S clock speed selector
|
||||||
*/
|
*/
|
||||||
enum clk_speed {HZ_10M=10000000, HZ_15M=15000000, HZ_20M=20000000};
|
enum clk_speed {HZ_8M=8000000, HZ_10M=10000000, HZ_15M=15000000, HZ_20M=20000000};
|
||||||
|
|
||||||
// Structure Variables
|
// Structure Variables
|
||||||
|
|
||||||
|
@ -342,6 +342,11 @@ class MatrixPanel_I2S_DMA {
|
||||||
if (m_cfg.driver)
|
if (m_cfg.driver)
|
||||||
shiftDriver(m_cfg);
|
shiftDriver(m_cfg);
|
||||||
|
|
||||||
|
#if defined(SPIRAM_DMA_BUFFER)
|
||||||
|
// Trick library into dropping colour depth slightly when using PSRAM.
|
||||||
|
// Actual output clockrate override occurs in configureDMA
|
||||||
|
m_cfg.i2sspeed = HUB75_I2S_CFG::HZ_8M;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* As DMA buffers are dynamically allocated, we must allocated in begin()
|
/* As DMA buffers are dynamically allocated, we must allocated in begin()
|
||||||
* Ref: https://github.com/espressif/arduino-esp32/issues/831
|
* Ref: https://github.com/espressif/arduino-esp32/issues/831
|
||||||
|
|
Loading…
Reference in a new issue