 /**** arduino default functions ****/
 
 void setup(void) {
-  // setup the screen
-  screen.setup();  
+	// setup the screen
+	screen.setup();  
 }
 
 void loop()
 {
-  // working with the state pattern because we have different screens (states)
-  switch (current_state) {
-  case STATE_RESET:              
-    doStateReset();              
-    break;
-  case STATE_NFC_KEY_LOGIN:      
-    doStateNfcKeyLogin();        
-    break;
-  case STATE_NFC_CARD_LOGIN:     
-    doStateNfcCardLogin();       
-    break;
-  case STATE_SHOW_DATA:          
-    doStateShowData();           
-    break;
-  case STATE_END:                
-    nextState();                 
-    break;
-  default:                       
-    doStateReset();              
-    break;
-  }
-
-}
-
-
-
-
+	// working with the state pattern because we have different screens (states)
+	switch (current_state) {
+	case STATE_RESET:              
+		doStateReset();              
+		break;
+	case STATE_NFC_KEY_LOGIN:      
+		doStateNfcKeyLogin();        
+		break;
+	case STATE_NFC_CARD_LOGIN:     
+		doStateNfcCardLogin();       
+		break;
+	case STATE_SHOW_DATA:          
+		doStateShowData();           
+		break;
+	case STATE_END:                
+		nextState();                 
+		break;
+	default:                       
+		doStateReset();              
+		break;
+	}
+
+}
+
+
+
+
+


/**** messages ****/
static const char* screen_message[] = { 
  "DataSave",
  "v1.0",
  "nfc card login",
  "unlock the nfc card with your key!",
  "put your nfc card on the nfc reader!"
};



NFCLib nfclib;

char nfc_key[6] = { 
	0, 0, 0, 0, 0, 0 }; // the key buffer
uint8_t nfc_key_count = 0;


