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
Diff: nfc/PN532_debug.h
- Revision:
- 0:88960f3eeb2c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nfc/PN532_debug.h Fri Dec 27 01:46:32 2013 +0000 @@ -0,0 +1,24 @@ +#ifndef __DEBUG_H__ +#define __DEBUG_H__ + +//#define DEBUG + +#ifdef DEBUG + +#include <stdio.h> + +#define DMSG(args...) printf(args) +#define DMSG_STR(str) printf("%s\n", str) +#define DMSG_INT(num) printf("%d\n", num) +#define DMSG_HEX(num) printf("%2X ", num) + +#else + +#define DMSG(args...) +#define DMSG_STR(str) +#define DMSG_INT(num) +#define DMSG_HEX(num) + +#endif // DEBUG + +#endif // __DEBUG_H__