initial commit
This commit is contained in:
15
libraries/FastLED/examples/LuminescentGrand/shared/dprint.h
Normal file
15
libraries/FastLED/examples/LuminescentGrand/shared/dprint.h
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "fl/unused.h"
|
||||
|
||||
|
||||
extern bool is_debugging;
|
||||
//#define ENABLE_DPRINT
|
||||
#ifdef ENABLE_DPRINT
|
||||
#define dprint(x) if (is_debugging) { Serial.print(x); }
|
||||
#define dprintln(x) if (is_debugging) { Serial.println(x); }
|
||||
#else
|
||||
#define dprint(x) FL_UNUSED(x)
|
||||
#define dprintln(x) FL_UNUSED(x)
|
||||
#endif
|
||||
Reference in New Issue
Block a user