Files
MFRC522_I2C_Library/README.md

17 lines
733 B
Markdown
Raw Permalink Normal View History

2018-06-24 15:46:10 +02:00
# MFRC522 i2c
### Code is compatible to Arduino and ESP8266 (NodeMCU)
2018-06-24 19:33:46 +02:00
Tested on [https://electronics.semaf.at/MFRC522-i2c-Tiny-Breakout-Board](https://electronics.semaf.at/MFRC522-i2c-Tiny-Breakout-Board)
![MFRC522 i2c Breakout Board](https://cdn.semaf.at/media/image/product/1748/md/mfrc522-i2c-tiny-breakout-board.jpg "MFRC522 i2c Breakout Board")
2018-06-24 15:54:59 +02:00
__Set the Pin for the RST and i2c address!__
2018-06-24 15:46:10 +02:00
```c++
#define RST_PIN 6 // Arduino UNO
// #define RST_PIN 14 // D5 on NodeMCU
// 0x28 is i2c address of the NFC Reader. Check your address with i2cscanner if not match.
MFRC522 mfrc522(0x28, RST_PIN); // Create MFRC522 instance.
```
2018-06-24 16:05:48 +02:00
2018-06-24 16:07:10 +02:00
Thanks to @arozcan for the [MFRC522 i2c Library](https://github.com/arozcan/MFRC522-I2C-Library)