Help with RFID Card Number

Where would put my Card Code?

#include <Keyboard.h>
#include <SPI.h>
#include <MFRC522.h>
#define SS_PIN 10
#define RST_PIN 5
#define KEY_RETURN 0xB0
 
MFRC522 mfrc522 ( SS_PIN, RST_PIN ) ;
char ctrlKey = KEY_RETURN;
 
void setup ( ) {
Serial. begin ( 9600 ) ;
Keyboard. begin ( ) ;
SPI. begin ( ) ;
mfrc522. PCD_Init ( ) ;
}
 
void loop ( ) {
if ( ! mfrc522.PICC_IsNewCardPresent ( ) ) {
return ;
}
 
if ( ! mfrc522.PICC_ReadCardSerial () ) {
return ;
}
 
mfrc522. PICC_DumpToSerial ( & ( mfrc522.uid ) ) ; // serial monitor
Keyboard.press(KEY_LEFT_GUI);
Keyboard.press('l');
Keyboard.releaseAll();
 delay (300) ;
Keyboard. press (ctrlKey) ;
Keyboard. release (ctrlKey) ;
delay (300) ;
 
// You can add another character like '@' here.
//Keyboard.print('@ ');
//Keyboard.print('# ');
 
for (byte i = 0 ; i < 4 ; i ++) {
Keyboard. print ( 2305 ) ; // eg C4AD6FB2
}
 
// You can add another character like '@' here.
//Keyboard.print('3 ');
//Keyboard.print('4 ');
 
Keyboard. releaseAll ( ) ;
delay ( 200 ) ;
 
Keyboard. press ( ctrlKey ) ;
Keyboard. releaseAll ( ) ;
}

Why did you start a topic in the Uncategorised category of the forum when its description is

:warning: DO NOT CREATE TOPICS IN THIS CATEGORY :warning:

Your topic has been moved to the Programming category

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.