Open stauroslaf opened 5 years ago
hello i have this problem
but i can't understund why
i have arduino uno with rfidrc522 and irremote when i put my card to rfid send one code to my tv before 2 day they worked but i open the code to change the deley and then make me that
thnxx for your time and sorry for my english
IRsend irsend;
MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance.
void setup() { // put your setup code here, to run once: Serial.begin(9600); // Initiate a serial communication mfrc522.PCD_Init(); // Initiate MFRC522
} void loop() { // Look for new cards if ( ! mfrc522.PICC_IsNewCardPresent()) { return; } // Select one of the cards if ( ! mfrc522.PICC_ReadCardSerial()) { return; } //Show UID on serial monitor Serial.print("UID tag :"); String content = ""; byte letter; for (byte i = 0; i < mfrc522.uid.size; i++) { Serial.print(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " "); Serial.print(mfrc522.uid.uidByte[i], HEX); content.concat(String(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " ")); content.concat(String(mfrc522.uid.uidByte[i], HEX)); } Serial.println(); Serial.print("Message : "); content.toUpperCase(); if (content.substring(1) == "59 7A 86 6D") //change here the UID of the card/cards that you want to give access 5A2131DF { Serial.println("Authorized access"); Serial.println(); delay(500); }
delay(1000); //Power// irsend.sendNEC(0x5A2131DF, 32); //Power Code Serial.println("Power"); delay(1000);
}
i use that code
In file included from C:\Users\staur\OneDrive\Documents\Arduino\sketch_oct25a\sketch_oct25a.ino:2:0:
C:\Users\staur\OneDrive\Documents\Arduino\libraries\FirmataWithDeviceFeature\src/DeviceFirmata.h:6:21: fatal error: LuniLib.h: No such file or directory
compilation terminated.
exit status 1 Error compiling for board Arduino/Genuino Uno.