From c0886fd0e9adb6c276e4552586a53e8197888f2a Mon Sep 17 00:00:00 2001 From: Tobias Schneider Date: Fri, 27 Jul 2018 20:15:22 +0200 Subject: [PATCH] Added info text --- read.py | 6 +++--- wipe.py | 3 ++- write.py | 6 +++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/read.py b/read.py index 7ae2d39..0212ecd 100644 --- a/read.py +++ b/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) diff --git a/wipe.py b/wipe.py index 3e635c4..9ce6209 100644 --- a/wipe.py +++ b/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: diff --git a/write.py b/write.py index 01ca4ec..1afdbe2 100644 --- a/write.py +++ b/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)