Skip to content

Commit

Permalink
sdf
Browse files Browse the repository at this point in the history
  • Loading branch information
Syndlex committed Jan 14, 2022
1 parent 642e5ef commit 7e5dda2
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions components/dmamatrix/dmamatrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ static const char *TAG = "dmamatrix_display";
namespace esphome {
namespace dmamatrix_display {

MatrixPanel_I2S_DMA *dmamatrix = nullptr;



void display_updater() { }

float DmaMatrixDisplay::get_setup_priority() const { return setup_priority::PROCESSOR; }
Expand All @@ -35,10 +31,9 @@ void DmaMatrixDisplay::setup() {
mxconfig.clkphase = false;

this->dma_matrix_ = new MatrixPanel_I2S_DMA(mxconfig);
dmamatrix = this->dma_matrix_;
dmamatrix->begin();
dmamatrix->setBrightness8(this->brightness_); //0-255
dmamatrix->clearScreen();
dma_matrix_->begin();
dma_matrix_->setBrightness8(this->brightness_); //0-255
dma_matrix_->clearScreen();
ESP_LOGI(TAG, "Finished Setup");
}

Expand Down

0 comments on commit 7e5dda2

Please sign in to comment.