Page 695 - 3-2
P. 695
# If we have the UID, continue
if status == MIFAREReader.MI_OK:
# Print UID
print "Card read UID: "+str(uid[0])+","+str(uid[1])+","+str(uid[2])+","+str(uid[3])
#a = [str(uid[0]),str(uid[1]),str(uid[2]),str(uid[3])]
a = uid
return a
# This is the default key for authentication
key = [0xFF,0xFF,0xFF,0xFF,0xFF,0xFF]
# Select the scanned tag
MIFAREReader.MFRC522_SelectTag(uid)
# Authenticate
status = MIFAREReader.MFRC522_Auth(MIFAREReader.PICC_AUTHENT1A, 8, key,
uid)
# Check if authenticated
if status == MIFAREReader.MI_OK:
MIFAREReader.MFRC522_Read(8)
MIFAREReader.MFRC522_StopCrypto1()
else:
print "Authentication error"
-------------------------------------------------
A-2. NFC, 송신,TFT-LCD
첫 번째 화면 NFC( 찍기 전) 두 번째 화면 NFC( 찍기 후)
Tft-lcd 화면
# -*- coding: utf-8 -*-
- 695 -