to colorize a colorful pixel with a simple touch using nfc technology
Dependencies: Chainable_RGB_LED mbed
use Arch, NFC Shield and Grove - Chainable RGB LED to DIY a touch pixel. Then use an Android with NFC support to colorize it.
The project is on https://github.com/Seeed-Studio/TouchPixel
nfc/PN532_debug.h@0:88960f3eeb2c, 2013-12-27 (annotated)
- Committer:
- yihui
- Date:
- Fri Dec 27 01:46:32 2013 +0000
- Revision:
- 0:88960f3eeb2c
initial
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yihui | 0:88960f3eeb2c | 1 | #ifndef __DEBUG_H__ |
yihui | 0:88960f3eeb2c | 2 | #define __DEBUG_H__ |
yihui | 0:88960f3eeb2c | 3 | |
yihui | 0:88960f3eeb2c | 4 | //#define DEBUG |
yihui | 0:88960f3eeb2c | 5 | |
yihui | 0:88960f3eeb2c | 6 | #ifdef DEBUG |
yihui | 0:88960f3eeb2c | 7 | |
yihui | 0:88960f3eeb2c | 8 | #include <stdio.h> |
yihui | 0:88960f3eeb2c | 9 | |
yihui | 0:88960f3eeb2c | 10 | #define DMSG(args...) printf(args) |
yihui | 0:88960f3eeb2c | 11 | #define DMSG_STR(str) printf("%s\n", str) |
yihui | 0:88960f3eeb2c | 12 | #define DMSG_INT(num) printf("%d\n", num) |
yihui | 0:88960f3eeb2c | 13 | #define DMSG_HEX(num) printf("%2X ", num) |
yihui | 0:88960f3eeb2c | 14 | |
yihui | 0:88960f3eeb2c | 15 | #else |
yihui | 0:88960f3eeb2c | 16 | |
yihui | 0:88960f3eeb2c | 17 | #define DMSG(args...) |
yihui | 0:88960f3eeb2c | 18 | #define DMSG_STR(str) |
yihui | 0:88960f3eeb2c | 19 | #define DMSG_INT(num) |
yihui | 0:88960f3eeb2c | 20 | #define DMSG_HEX(num) |
yihui | 0:88960f3eeb2c | 21 | |
yihui | 0:88960f3eeb2c | 22 | #endif // DEBUG |
yihui | 0:88960f3eeb2c | 23 | |
yihui | 0:88960f3eeb2c | 24 | #endif // __DEBUG_H__ |