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/MifareUltralight.h
- Committer:
- yihui
- Date:
- 2013-12-27
- Revision:
- 0:88960f3eeb2c
File content as of revision 0:88960f3eeb2c:
#ifndef MifareUltralight_h #define MifareUltralight_h #include <PN532.h> #include <NfcTag.h> #include <Ndef.h> class MifareUltralight { public: MifareUltralight(PN532& nfcShield); ~MifareUltralight(); NfcTag read(uint8_t *uid, unsigned int uidLength); private: PN532* nfc; unsigned int tagCapacity; unsigned int messageLength; unsigned int bufferSize; unsigned int ndefStartIndex; bool isUnformatted(); void readCapabilityContainer(); void findNdefMessage(); void calculateBufferSize(); }; #endif