WeMOS: D1 R1 mini RFID 2
Revision as of 09:26, 30 May 2024 by Onnowpurbo (talk | contribs)
Sumber: https://blog.jeronimus.net/2018/03/rfid-and-wemos-d1-mini-1.html
Tabel sambungan:
Signal MFRC522 WeMos D1 mini NodeMcu Generic RST/Reset RST D3 [1] D3 [1] GPIO-0 [1] SPI SS SDA [3] D8 [2] D8 [2] GPIO-15 [2] SPI MOSI MOSI D7 D7 GPIO-13 SPI MISO MISO D6 D6 GPIO-12 SPI SCK SCK D5 D5
Source
#include "MFRC522.h" #define RST_PIN 5 // RST-PIN for RC522 - RFID - SPI - Modul GPIO5 #define SS_PIN 4 // SDA-PIN for RC522 - RFID - SPI - Modul GPIO4 MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance