#include <SPI.h>
#include <RFID.h>
const int SS_PIN = 5;
const int RST_PIN = 27;
RFID rfid_ku(SS_PIN, RST_PIN)
void setup() {
// put your setup code here, to run once:
SPI.begin();
rfid_ku.init();
}
void loop() {
if(rfid_ku.isCard()){
serial.print("onok kartu nempel");
}
else{
serial.println("Gaonok Kartu nempel")
}
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}