Browse Source

CreateMappings: Fix uid prints

master
Felix 8 months ago
parent
commit
889540df9f
  1. 9
      CreateMappings/CreateMappings.ino

9
CreateMappings/CreateMappings.ino

@ -35,15 +35,18 @@ void loop() {
return;
}
Serial.print(F("Size: "));
Serial.println(mfrc522.uid.size, DEC);
String code = "";
code.concat("{ { 0x");
code.concat(String(mfrc522.uid.uidByte[0], HEX));
code.concat(", 0x");
code.concat(String(mfrc522.uid.uidByte[0], HEX));
code.concat(String(mfrc522.uid.uidByte[1], HEX));
code.concat(", 0x");
code.concat(String(mfrc522.uid.uidByte[0], HEX));
code.concat(String(mfrc522.uid.uidByte[2], HEX));
code.concat(", 0x");
code.concat(String(mfrc522.uid.uidByte[0], HEX));
code.concat(String(mfrc522.uid.uidByte[3], HEX));
code.concat(" }, LED(1) | LED(2) }");
Serial.println(code);
}

Loading…
Cancel
Save