我想用 Arduino Leonardo 将卡的 UID 打印为 HID。
这是我的代码
void loop() {
if ( mfrc522.PICC_IsNewCardPresent()) {
// Select one of the cards
if ( mfrc522.PICC_ReadCardSerial()) {
// Dump debug info about the card; PICC_HaltA() is automatically called
mfrc522.PICC_DumpToSerial(&(mfrc522.uid));
Keyboard.print(mfrc522.uid);
}
}
}
这就是编译器所说的
note: no known conversion for argument 1 from 'MFRC522::Uid' to 'const Printable&'
exit status 1
有谁知道该怎么做?