diff options
| author | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2020-12-12 12:30:06 +0000 |
|---|---|---|
| committer | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2020-12-12 12:30:06 +0000 |
| commit | 496f042cdbebafe6b6b61399368ca964dbe5e750 (patch) | |
| tree | c9e1e3fb4862b7f78bb7747b179704ddc4e5c55f | |
| parent | c425b9caa703c92f6181ae6d4b315ca2f803eb68 (diff) | |
Adding ICN2038S as apparently it's a clone of FM6126A as well.
| -rw-r--r-- | ESP32-HUB75-MatrixPanel-I2S-DMA.cpp | 1 | ||||
| -rw-r--r-- | ESP32-HUB75-MatrixPanel-I2S-DMA.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp b/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp index 3bb51df..25eacb7 100644 --- a/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp +++ b/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp @@ -655,6 +655,7 @@ void MatrixPanel_I2S_DMA::updateMatrixDMABuffer(uint8_t red, uint8_t green, uint */ void MatrixPanel_I2S_DMA::shiftDriver(const shift_driver _drv, const int dma_r1_pin, const int dma_g1_pin, const int dma_b1_pin, const int dma_r2_pin, const int dma_g2_pin, const int dma_b2_pin, const int dma_a_pin, const int dma_b_pin, const int dma_c_pin, const int dma_d_pin, const int dma_e_pin, const int dma_lat_pin, const int dma_oe_pin, const int dma_clk_pin){ switch (_drv){ + case ICN2038S: case FM6124: case FM6126A: { diff --git a/ESP32-HUB75-MatrixPanel-I2S-DMA.h b/ESP32-HUB75-MatrixPanel-I2S-DMA.h index 31a65f8..b86cb1e 100644 --- a/ESP32-HUB75-MatrixPanel-I2S-DMA.h +++ b/ESP32-HUB75-MatrixPanel-I2S-DMA.h @@ -169,7 +169,7 @@ typedef struct RGB24 { uint8_t blue; } RGB24; -enum shift_driver {SHIFT=0, FM6124, FM6126A}; +enum shift_driver {SHIFT=0, FM6124, FM6126A, ICN2038S}; /***************************************************************************************/ // Used by val2PWM |
