fa2cb74ba1
This pull request adds two examples and tests using the ESP-IDF framework: * A test with the Arduino GFX library (which requires the arduino-esp32 library & Arduino BusIO library) * A test without the Arduino GFX library, which can be compiled without any additional dependencies. Having these tests helps prevent any future regressions that may break users of the ESP-IDF platform.
14 lines
455 B
C++
14 lines
455 B
C++
#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();
|
|
// `println` is only available when the Adafruit GFX library is used.
|
|
dma_display->println("Test message");
|
|
}
|