 
 
 void setup(void) {
-  pinMode(MEMORY_BUTTON,INPUT_PULLUP);
-  pinMode(SLOT_SELECT,INPUT_PULLUP);
+  pinMode(SAVE_CARD,INPUT_PULLUP);
+  pinMode(RESET_MEMORY,INPUT_PULLUP);
   pinMode(STATUS_LED,OUTPUT);
   pinMode(LOCKED,OUTPUT);
   pinMode(UNLOCKED,OUTPUT);

    files in https://github.com/devalfrz/arduino-lockitron-nfc).

    Buttons: (buttons are set to have a pullup resistor so they ar inverted)
      - SLOT_SELECT: Selects a memory slot. STATUS_LED will blink n times depending
          on the slot that has been selected.
            
      - MEMORY_BUTTON: If it's pressed for 3 seconds while a card is read,
          it will either override the selected slot or delete the card if it
          was already registered.

      - LOCK_UNLOCK: This button will lock or unlock the system depending on its
          previous state.
          

*/
/**************************************************************************/

/**** INPUTS/OUTPUTS ****/
// Adafruit PN532 breakout board:
#define PN532_SCK  22
#define PN532_MOSI 21
#define PN532_SS   20
#define PN532_MISO 23
// Buttons
#define SLOT_SELECT 10
#define MEMORY_BUTTON 9
#define STATUS_LED 13
#define UNLOCKED 12
#define LOCKED 11

void loop(void) {
  uint8_t success;
  uint8_t uid[] = { 0, 0, 0, 0, 0, 0, 0 };  // Buffer to store the returned UID
  int tmp_addr;
  uint8_t uidLength;    // Length of the UID (4 or 7 bytes depending on ISO14443A card type)
  int i,j;
  boolean save_delete = 0;
