10 const char* last_slash =
nullptr;
13 if (
p[0] ==
's' &&
p[1] ==
'r' &&
p[2] ==
'c' &&
p[3] ==
'/') {
23 return last_slash + 1;
30#define FASTLED_DBG_USE_PRINTF 1
33#ifndef FASTLED_DBG_USE_PRINTF
34#if defined(DEBUG) && (defined(__IMXRT1062__) || defined(ESP32))
35#define FASTLED_DBG_USE_PRINTF 1
37#define FASTLED_DBG_USE_PRINTF 0
42#if FASTLED_DBG_USE_PRINTF
43#define FASTLED_HAS_DBG 1
48#define _FASTLED_DGB(X) \
51 (fl::fastled_file_offset(__FILE__)) << "(" << __LINE__ << "): " << X << "\n") \
54#define FASTLED_DBG(X) _FASTLED_DGB(X)
58#ifndef FASTLED_HAS_DBG
60#define FASTLED_DBG(X) (fl::FakeStrStream() << X)
65#define FASTLED_DBG_IF(COND, MSG) if (COND) FASTLED_DBG(MSG)
67#define FASTLED_DBG_IF(COND, MSG) while(false && (COND)) { FASTLED_DBG(MSG); }
const char * fastled_file_offset(const char *file)
Implements a simple red square effect for 2D LED grids.
static FASTLED_NAMESPACE_BEGIN uint8_t const p[]