Light Show library for organic, calm, light display.

Dependencies:   BLE_API mbed nRF51822

Fork of mbed_blinky by Mbed

macros.h

Committer:
nargetdev
Date:
2016-02-01
Revision:
27:a55dde8334f3
Parent:
25:d48f46d753fd

File content as of revision 27:a55dde8334f3:

#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 */