Update
This commit is contained in:
parent
6527907ac5
commit
fd7629e52c
3 changed files with 3 additions and 4 deletions
|
@ -351,6 +351,8 @@ class MatrixPanel_I2S_DMA {
|
||||||
/* Propagate the DMA pin configuration, allocate DMA buffs and start data ouput, initialy blank */
|
/* Propagate the DMA pin configuration, allocate DMA buffs and start data ouput, initialy blank */
|
||||||
bool begin(){
|
bool begin(){
|
||||||
|
|
||||||
|
if (initialized) return; // we don't do this twice or more!
|
||||||
|
|
||||||
// Change 'if' to '1' to enable, 0 to not include this Serial output in compiled program
|
// Change 'if' to '1' to enable, 0 to not include this Serial output in compiled program
|
||||||
#if SERIAL_DEBUG
|
#if SERIAL_DEBUG
|
||||||
Serial.printf_P(PSTR("Using pin %d for the R1_PIN\n"), m_cfg.gpio.r1);
|
Serial.printf_P(PSTR("Using pin %d for the R1_PIN\n"), m_cfg.gpio.r1);
|
||||||
|
|
|
@ -111,9 +111,6 @@ void setup() {
|
||||||
dma_display->clearScreen();
|
dma_display->clearScreen();
|
||||||
dma_display->fillScreen(myWHITE);
|
dma_display->fillScreen(myWHITE);
|
||||||
|
|
||||||
//
|
|
||||||
dma_display->begin(); // use default pins
|
|
||||||
|
|
||||||
// fix the screen with green
|
// fix the screen with green
|
||||||
dma_display->fillRect(0, 0, dma_display->width(), dma_display->height(), dma_display->color444(0, 15, 0));
|
dma_display->fillRect(0, 0, dma_display->width(), dma_display->height(), dma_display->color444(0, 15, 0));
|
||||||
delay(500);
|
delay(500);
|
||||||
|
|
Loading…
Reference in a new issue