Skip to content

Commit

Permalink
Fix compilation issues with Arduino IDE
Browse files Browse the repository at this point in the history
* Fix various compile errors / warnings when using Arduino 2.0 IDE (it compiles to a strict standard and errors out with unused variables etc.)
* Fix issue with compiling for ESP32-S2 using Arduino IDE
  • Loading branch information
mrcodetastic committed Jan 1, 2023
1 parent 81ee41e commit ce2b626
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 600 deletions.
8 changes: 6 additions & 2 deletions src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
#include "rom/cache.h"
#endif

static const char* TAG = "MatrixPanel";
extern Bus_Parallel16 dma_bus;

#if CORE_DEBUG_LEVEL > 0
static const char* TAG = "MatrixPanel";
#endif

/* This replicates same function in rowBitStruct, but due to induced inlining it might be MUCH faster
* when used in tight loops while method from struct could be flushed out of instruction cache between
Expand Down Expand Up @@ -256,7 +260,7 @@ void MatrixPanel_I2S_DMA::configureDMA(const HUB75_I2S_CFG& _cfg)
bus_cfg.pin_d15 = -1;

#if defined(SPIRAM_DMA_BUFFER)
bus_cfg.psram_clk_hack = true;
bus_cfg.psram_clk_override = true;
#endif

dma_bus.config(bus_cfg);
Expand Down
Loading

0 comments on commit ce2b626

Please sign in to comment.