We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, How can I use two of the RC522? Few uids came up, but after this period the esp32 had no reaction. Only with an restart.
Where is the problem? So my try:
#include <Wire.h> #include "MFRC522_I2C.h" MFRC522 mfrc522(0x2B, 2); MFRC522 mfrc522_2(0x28, 2); void setup() { Serial.begin(115200); Wire.begin(); mfrc522.PCD_Init(); mfrc522_2.PCD_Init(); Serial.println(F("Scan UID")); } void loop() { ///////////////////////// DEV 1 //////////////////////////////// if (mfrc522.PICC_IsNewCardPresent() && mfrc522.PICC_ReadCardSerial()) { Serial.print(F("Card UID:")); for (byte i = 0; i < mfrc522.uid.size; i++) { Serial.print(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " "); Serial.print(mfrc522.uid.uidByte[i], HEX); } Serial.println(); } ///////////////////////// DEV 2 //////////////////////////////// if (mfrc522_2.PICC_IsNewCardPresent() && mfrc522_2.PICC_ReadCardSerial()) { Serial.print(F("Card UID:")); for (byte i = 0; i < mfrc522_2.uid.size; i++) { Serial.print(mfrc522_2.uid.uidByte[i] < 0x10 ? " 0" : " "); Serial.print(mfrc522_2.uid.uidByte[i], HEX); } Serial.println(); } }
The text was updated successfully, but these errors were encountered:
same for me on esp32
Sorry, something went wrong.
No branches or pull requests
Hello,
How can I use two of the RC522?
Few uids came up, but after this period the esp32 had no reaction. Only with an restart.
Where is the problem?
So my try:
The text was updated successfully, but these errors were encountered: