10 const char *last_slash =
nullptr;
13 if (
p[0] ==
's' &&
p[1] ==
'r' &&
p[2] ==
'c' &&
p[3] ==
'/') {
24 return last_slash + 1;
31#define FASTLED_DBG_USE_PRINTF 1
34#ifndef FASTLED_DBG_USE_PRINTF
35#if defined(DEBUG) && \
36 (defined(__IMXRT1062__) || defined(ESP32) || defined(FASTLED_TESTING))
37#define FASTLED_DBG_USE_PRINTF 1
39#define FASTLED_DBG_USE_PRINTF 0
43#if FASTLED_DBG_USE_PRINTF
44#define FASTLED_HAS_DBG 1
47#define _FASTLED_DGB(X) \
48 printf("%s", (fl::StrStream() << (fl::fastled_file_offset(__FILE__)) \
49 << "(" << __LINE__ << "): " << X << "\n") \
52#define FASTLED_DBG(X) _FASTLED_DGB(X)
55#ifndef FASTLED_HAS_DBG
57#define FASTLED_DBG(X) (fl::FakeStrStream() << X)
62#define FASTLED_DBG_IF(COND, MSG) \
66#define FASTLED_DBG_IF(COND, MSG) \
67 while (false && (COND)) { \
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[]