8#include "esp_heap_caps.h"
19 void *out = heap_caps_malloc(size, MALLOC_CAP_SPIRAM);
22 out = heap_caps_malloc(size, MALLOC_CAP_DEFAULT);
42 void *ptr = Alloc(size);
Implements the FastLED namespace macros.
void * DefaultAlloc(size_t size)
void DefaultFree(void *ptr)
void SetLargeBlockAllocator(void *(*alloc)(size_t), void(*free)(void *))
void LargeBlockDeallocate(void *ptr)
void * LargeBlockAllocate(size_t size, bool zero)
Implements a simple red square effect for 2D LED grids.