Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/ESP32-HUB75-MatrixPanel-I2S-DMA.h
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,9 @@ class MatrixPanel_I2S_DMA
}

/**
* Stop the ESP32 DMA Engine. Screen will forever be black until next ESP reboot.
* Stop the ESP32 DMA Engine, keeping buffers and config intact so output can be
* resumed later via resumeDMAoutput(). Useful to reduce power draw / 'turn off' the
* panel when not in use, or to quiet its RF emissions during WiFi transfers.
*/
void stopDMAoutput()
{
Expand All @@ -716,6 +718,15 @@ class MatrixPanel_I2S_DMA
dma_bus.dma_transfer_stop();
}

/**
* Resume DMA output after a stopDMAoutput() call.
* Note: stopDMAoutput() blanks the framebuffer (brightness is preserved), so redraw after.
*/
void resumeDMAoutput()
{
dma_bus.dma_transfer_start();
}

// ------- PROTECTED -------
// those might be useful for child classes, like VirtualMatrixPanel
protected:
Expand Down