-
-
Save parzibyte/26a0e4c49511710b19a86dcb5cf48f19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() | |
{ | |
Serial.begin(9600); | |
while (!Serial) | |
{ | |
// Esperar serial. Nota: la tarjeta NO HARÁ NADA hasta que haya comunicación Serial (es decir, que el monitor serial sea abierto) | |
// si tú no quieres esto, simplemente elimina todas las llamadas a Serial | |
} | |
// Iniciar lector | |
SPI.begin(); | |
lector.PCD_Init(); | |
// Preparar la clave para leer las tarjetas RFID | |
for (byte i = 0; i < 6; i++) | |
{ | |
clave.keyByte[i] = 0xFF; | |
} | |
Serial.println("Iniciado correctamente"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment