0
how this code in I read the card and inform if it is registered or not. Now I need to insert two rfid readers in the Arduino. How to add the second rfid reader to this code?
include SPI.h
include MFRC522.h
define LED_VERDE 6
define LED_VERMELHO 7
define BUZZER 8
define SS_PIN 10
define RST_PIN 9
String IDtag = "";
bool Permitido = false;
String TagsCadastradas[] = {"ID_1"};
MFRC522 LeitorRFID(SS_PIN, RST_PIN);
void setup() {
Serial.begin(9600);
SPI.begin();
LeitorRFID.PCD_Init();
pinMode(LED_VERDE, OUTPUT);
pinMode(LED_VERMELHO, OUTPUT);
pinMode(BUZZER, OUTPUT);
}
void loop() {
Leitura();
}
Possibly instantiating another object of the type
MFRC522
.– Woss
and here: Leitorrfid.Pcd_init(); would have nothing?
– Jon
Would you have called
PCD_Init
from the other instance– Woss
According to the user Rodrigo suggested, more precise help for your problem will possibly be found in the community about Arduino.
– Woss