Code: Select all
printf("Heap/32-bit Memory Available: %6d bytes total, %6d bytes largest free block\n", heap_caps_get_free_size(0), heap_caps_get_largest_free_block(0));
uint32_t mallocsize = m_absMWidth * m_absBWidth * m_absMHeight * m_absBHeight * sizeof(CRGB);
p_LED = (struct CRGB *) malloc(mallocsize);
if (! p_LED) { Serial.print("Malloc LEDMatrix Failed. Bytes requested: "); Serial.println(mallocsize);}
Code: Select all
Heap/32-bit Memory Available: 136444 bytes total, 82808 bytes largest free block
Malloc LEDMatrix Failed. Bytes requested: 49152