Added info text
This commit is contained in:
6
read.py
6
read.py
@@ -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)
|
||||
|
||||
|
||||
3
wipe.py
3
wipe.py
@@ -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:
|
||||
|
||||
6
write.py
6
write.py
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user