You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been getting an error "can't open device: No such file or directory" which I have nailed down to the line
pi@raspberrypi:~/gr_programs/RFID/SPI-Py/MFRC522-python $ sudo python read.py
Opening file.
importing MFRC533.
Opening signal
Signal open
MIFAREREADER =
can't open device: No such file or directory
I have been getting an error "can't open device: No such file or directory" which I have nailed down to the line
pi@raspberrypi:~/gr_programs/RFID/SPI-Py/MFRC522-python $ sudo python read.py
Opening file.
importing MFRC533.
Opening signal
Signal open
MIFAREREADER =
can't open device: No such file or directory
This is my modified .py
print "Opening file."
print "importing MFRC533."
import MFRC522
print "Opening signal"
import signal
print "Signal open"
continue_reading = True
print "MIFAREREADER ="
MIFAREReader = MFRC522.MFRC522()
print "Def card AtoC ="
cardA = [5,74,28,185,234]
cardB = [83,164,247,164,164]
cardC = [20,38,121,207,132]
print "Def end read ="
def end_read(signal, frame):
global continue_reading
continue_reading = False
print "Ctrl+C captured, ending read."
MIFAREReader.GPIO_CLEEN()
signal.signal(signal.SIGINT, end_read)
Any idea on what I doing wrong?
The text was updated successfully, but these errors were encountered: