Minor updates

This commit is contained in:
mrfaptastic 2022-10-23 12:35:08 +01:00
parent d58ae512b4
commit 0cba8a7345
2 changed files with 1 additions and 3 deletions

View file

@ -24,7 +24,7 @@ bool MatrixPanel_I2S_DMA::allocateDMAmemory()
if (ptr->data == nullptr)
{
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);
ESP_LOGE(TAG, "CRITICAL ERROR: Can't allocate rowBitStruct %d! Not enough memory for requested PIXEL_COLOUR_DEPTH_BITS. Please reduce PIXEL_COLOUR_DEPTH_BITS value.\r\n", malloc_num);
return false;
// TODO: should we release all previous rowBitStructs here???
}

View file

@ -74,8 +74,6 @@
#define PIXEL_COLOUR_DEPTH_BITS 8
#endif
#define COLOUR_CHANNELS_PER_PIXEL 3
/***************************************************************************************/
/* Definitions below should NOT be ever changed without rewriting library logic */
#define ESP32_I2S_DMA_STORAGE_TYPE uint16_t // DMA output of one uint16_t at a time.