Added info text

This commit is contained in:
2018-07-27 20:15:22 +02:00
parent 0aa336c554
commit c0886fd0e9
3 changed files with 8 additions and 7 deletions

View File

@@ -3,9 +3,6 @@
#!/usr/bin/env python
import RPi.GPIO as GPIO
import MFRC522
import signal
import time
import sys
# Keys
DEFAULT_KEY = [0xFF,0xFF,0xFF,0xFF,0xFF,0xFF]
@@ -24,6 +21,9 @@ def uid_to_num(uid):
RFID = MFRC522.MFRC522()
print "# RFID Reader\n"
print "Info: Leave the sector field empty to exit.\n"
# Get tag size if available
(status, TagSize) = RFID.Request(RFID.PICC_REQIDL)

View File

@@ -3,7 +3,6 @@
#!/usr/bin/env python
import RPi.GPIO as GPIO
import MFRC522
import signal
# Keys
DEFAULT_KEY = [0xFF,0xFF,0xFF,0xFF,0xFF,0xFF]
@@ -19,6 +18,8 @@ def uid_to_num(uid):
RFID = MFRC522.MFRC522()
print "# RFID Wipe\n"
print "Waiting for tag...\n"
while True:

View File

@@ -3,9 +3,6 @@
#!/usr/bin/env python
import RPi.GPIO as GPIO
import MFRC522
import signal
import time
import sys
# Keys
DEFAULT_KEY = [0xFF,0xFF,0xFF,0xFF,0xFF,0xFF]
@@ -24,6 +21,9 @@ def uid_to_num(uid):
RFID = MFRC522.MFRC522()
print "# RFID Writer\n"
print "Info: Leave the sector field empty to exit.\n"
# Get tag size if available
(status, TagSize) = RFID.Request(RFID.PICC_REQIDL)