Display text on screen.
Dependencies: TextLCD mbed MaxSonar RTC-DS1307
Fork of TextLCD_HelloWorld by
debug.h@14:2bde99b3345c, 2017-05-26 (annotated)
- Committer:
- aueangpanit
- Date:
- Fri May 26 11:13:59 2017 +0000
- Revision:
- 14:2bde99b3345c
working clock
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
aueangpanit | 14:2bde99b3345c | 1 | #ifndef __DEBUG_H__ |
aueangpanit | 14:2bde99b3345c | 2 | #define __DEBUG_H__ |
aueangpanit | 14:2bde99b3345c | 3 | |
aueangpanit | 14:2bde99b3345c | 4 | |
aueangpanit | 14:2bde99b3345c | 5 | #ifdef DEBUG |
aueangpanit | 14:2bde99b3345c | 6 | #define INFO(x, ...) std::printf("[INFO: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
aueangpanit | 14:2bde99b3345c | 7 | #define WARN(x, ...) std::printf("[WARN: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
aueangpanit | 14:2bde99b3345c | 8 | #define ERR(x, ...) std::printf("[ERR: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
aueangpanit | 14:2bde99b3345c | 9 | #else |
aueangpanit | 14:2bde99b3345c | 10 | #define INFO(x, ...) |
aueangpanit | 14:2bde99b3345c | 11 | #define WARN(x, ...) |
aueangpanit | 14:2bde99b3345c | 12 | #define ERR(x, ...) |
aueangpanit | 14:2bde99b3345c | 13 | #endif |
aueangpanit | 14:2bde99b3345c | 14 | |
aueangpanit | 14:2bde99b3345c | 15 | |
aueangpanit | 14:2bde99b3345c | 16 | #endif |