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

Revision:
0:88960f3eeb2c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nfc/MifareClassic.h	Fri Dec 27 01:46:32 2013 +0000
@@ -0,0 +1,22 @@
+#ifndef MifareClassic_h
+#define MifareClassic_h
+
+#include <PN532.h>
+#include <Ndef.h>
+#include <NfcTag.h>
+
+class MifareClassic
+{
+    public:
+        MifareClassic(PN532& nfcShield);
+        ~MifareClassic();
+        NfcTag read(uint8_t *uid, unsigned int uidLength);
+        bool write(NdefMessage& ndefMessage, uint8_t *uid, unsigned int uidLength);
+    private:
+        PN532* _nfcShield;
+        int getBufferSize(int messageLength);
+        int getNdefStartIndex(uint8_t *data);
+        bool decodeTlv(uint8_t *data, int &messageLength, int &messageStartIndex);
+};
+
+#endif