Really simple program to preload into Nucleo boards to drive messages on the LCD shield for Ada Lovelace Day in ARM Sheffield

Dependencies:   TextLCD mbed

Committer:
MrBedfordVan
Date:
Wed Oct 05 16:40:24 2016 +0000
Revision:
0:59256585cc71
Really simple program to put on LCD Headers for ARM Sheffield Ada Lovelace Day

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MrBedfordVan 0:59256585cc71 1 #ifndef __DEBUG_H__
MrBedfordVan 0:59256585cc71 2 #define __DEBUG_H__
MrBedfordVan 0:59256585cc71 3
MrBedfordVan 0:59256585cc71 4
MrBedfordVan 0:59256585cc71 5 #ifdef DEBUG
MrBedfordVan 0:59256585cc71 6 #define INFO(x, ...) std::printf("[INFO: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
MrBedfordVan 0:59256585cc71 7 #define WARN(x, ...) std::printf("[WARN: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
MrBedfordVan 0:59256585cc71 8 #define ERR(x, ...) std::printf("[ERR: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
MrBedfordVan 0:59256585cc71 9 #else
MrBedfordVan 0:59256585cc71 10 #define INFO(x, ...)
MrBedfordVan 0:59256585cc71 11 #define WARN(x, ...)
MrBedfordVan 0:59256585cc71 12 #define ERR(x, ...)
MrBedfordVan 0:59256585cc71 13 #endif
MrBedfordVan 0:59256585cc71 14
MrBedfordVan 0:59256585cc71 15
MrBedfordVan 0:59256585cc71 16 #endif