An analog clock for LPC1768 or LPC1114 with Sharp Memory LCD and DS1307
Dependencies: Adafruit_SHARP_Memory_Display RTC-DS1307 mbed
Analog Clock
This is a small example of an analog clock based on a TinyRTC (DS1307) for LPC1768 and LPC1114. The clock is displayed on a small (96x96) Sharp Memory LCD. http://www.adafruit.com/products/1393 The TinyRTC is something like that (a simple DS1307 with some capacitors and a crystal does the job too): http://www.amazon.com/SainSmart-DS1307-AT24C32-memory-Arduino/dp/B00E37VTWY The RTC-lib created by Henry Leinen is used and the algorithm for calculation the clock-hands is based on input from http://arduino-project.net.
debug.h
- Committer:
- worstcase_ffm
- Date:
- 2015-12-06
- Revision:
- 0:202fb7a03a00
File content as of revision 0:202fb7a03a00:
#ifndef __DEBUG_H__ #define __DEBUG_H__ #ifdef DEBUG #define INFO(x, ...) std::printf("[INFO: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); #define WARN(x, ...) std::printf("[WARN: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); #define ERR(x, ...) std::printf("[ERR: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); #else #define INFO(x, ...) #define WARN(x, ...) #define ERR(x, ...) #endif #endif