aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2022-10-23 12:30:26 +0100
committermrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2022-10-23 12:30:26 +0100
commitd58ae512b488566391d48f2fd80cacf66b7061fd (patch)
tree44f414f44b491119c987b16b236cbbc16411f2e3 /src
parente2b9b6db36c25c3a15c788286d6732024091157c (diff)
Minor updates
Diffstat (limited to 'src')
-rw-r--r--src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp2
-rw-r--r--src/ESP32-HUB75-MatrixPanel-I2S-DMA.h13
-rw-r--r--src/platforms/platform_detect.hpp3
3 files changed, 10 insertions, 8 deletions
diff --git a/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp b/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp
index 816f993..cc68c04 100644
--- a/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp
+++ b/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp
@@ -24,7 +24,7 @@ bool MatrixPanel_I2S_DMA::allocateDMAmemory()
if (ptr->data == nullptr)
{
- ESP_LOGE(TAG, "ERROR: Couldn't malloc rowBitStruct %d! Critical fail.\r\n", malloc_num);
+ ESP_LOGE(TAG, "ERROR: Couldn't malloc rowBitStruct %d! Not enough memory for requested PIXEL_COLOUR_DEPTH_BITS. Please reduce colour depth. Critical fail.\r\n", malloc_num);
return false;
// TODO: should we release all previous rowBitStructs here???
}
diff --git a/src/ESP32-HUB75-MatrixPanel-I2S-DMA.h b/src/ESP32-HUB75-MatrixPanel-I2S-DMA.h
index 97374d7..bccc12f 100644
--- a/src/ESP32-HUB75-MatrixPanel-I2S-DMA.h
+++ b/src/ESP32-HUB75-MatrixPanel-I2S-DMA.h
@@ -4,15 +4,14 @@
/* Core ESP32 hardware / idf includes! */
#include <vector>
#include <memory>
-#include <Arduino.h>
+//#include <Arduino.h>
+//#include "freertos/FreeRTOS.h"
+//#include "freertos/task.h"
+//#include "freertos/semphr.h"
+//#include "freertos/queue.h"
-#include "freertos/FreeRTOS.h"
-#include "freertos/task.h"
-#include "freertos/semphr.h"
-#include "freertos/queue.h"
-
-#include "esp_heap_caps.h"
+//#include "esp_heap_caps.h"
#include "platforms/platform_detect.hpp"
diff --git a/src/platforms/platform_detect.hpp b/src/platforms/platform_detect.hpp
index 4373b37..8046601 100644
--- a/src/platforms/platform_detect.hpp
+++ b/src/platforms/platform_detect.hpp
@@ -49,6 +49,9 @@ Modified heavily for the ESP32 HUB75 DMA library by:
//#include "esp32/esp32_i2s_parallel_dma.h"
#include "esp32/esp32_i2s_parallel_dma.hpp"
#include "esp32/esp32-default-pins.hpp"
+
+ #else
+ #error "Unknown ESP32 platform."
#endif