9#include "esp_heap_caps.h"
10#include "esp_system.h"
20 void *out = heap_caps_malloc(size, MALLOC_CAP_SPIRAM);
23 out = heap_caps_malloc(size, MALLOC_CAP_DEFAULT);
43 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.