Light Show library for organic, calm, light display.
Dependencies: BLE_API mbed nRF51822
Fork of mbed_blinky by
Diff: macros.h
- Revision:
- 25:d48f46d753fd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/macros.h Mon Feb 01 01:02:46 2016 +0000 @@ -0,0 +1,14 @@ +#ifndef MACROS_H +#define MACROS_H + +#define NEED_CONSOLE_OUTPUT 1 /* Set this if you need debug messages on the console; +* it will have an impact on code-size and power consumption. */ +#if NEED_CONSOLE_OUTPUT +#define DEBUG(...) { printf(__VA_ARGS__); } +#else +#define DEBUG(STR) { if (uartServicePtr) uartServicePtr->write(STR, strlen(STR)); } +//#else +//#define DEBUG(...) /* nothing */ +#endif /* #if NEED_CONSOLE_OUxTPUT */ + +#endif /* #ifndef MACROS_H */ \ No newline at end of file