![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
grove nfc_tag sample program
Dependencies: mbed
Diff: nfc_tag.cpp
- Revision:
- 1:c492babe8dc3
- Parent:
- 0:b939441bcdc7
--- a/nfc_tag.cpp Tue Mar 28 10:21:09 2017 +0000 +++ b/nfc_tag.cpp Fri Mar 31 11:20:13 2017 +0000 @@ -41,9 +41,9 @@ NfcTag::NfcTag(PinName sda,PinName scl,uint8_t address,AccessMode mode = USER_MODE): m_I2C(sda, scl) { if(mode == USER_MODE){ - eeAddr = EEPROM_ADDR_E2_DISABLE; + eeAddr = EEPROM_ADDR_E2_DISABLE<<1; }else{ - eeAddr = EEPROM_ADDR_E2_ENABLE; + eeAddr = EEPROM_ADDR_E2_ENABLE<<1; } _address = address; // m_I2C Module Address