From 28244ca84fb26e2fc5585a84f5cc0feb80f5daa2 Mon Sep 17 00:00:00 2001 From: Semaf Electronics Date: Sun, 24 Jun 2018 15:46:10 +0200 Subject: [PATCH] Create README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..340374e --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# MFRC522 i2c +### Code is compatible to Arduino and ESP8266 (NodeMCU) + +1. [Download and install following library from arozcan](https://github.com/semaf/MFRC522-I2C-Library) + +2. __Set the Pin for the RST and i2c address!__ +```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. +```