aboutsummaryrefslogtreecommitdiff
path: root/examples/esp-idf/without-gfx/main/main.cpp
blob: c44b49c098e1da98b2a6a93864e46f35dac7b71f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "ESP32-HUB75-MatrixPanel-I2S-DMA.h"

MatrixPanel_I2S_DMA *dma_display = nullptr;

extern "C" void app_main() {
  HUB75_I2S_CFG mxconfig(/* width = */ 64, /* height = */ 64, /* chain = */ 1);

  dma_display = new MatrixPanel_I2S_DMA(mxconfig);
  dma_display->begin();
  dma_display->setBrightness8(80);
  dma_display->clearScreen();
}