1572191256 Publish time 2019-10-27 23:55:54

RFID code not working lesson 19

When I try to start Read.py from lesson 19 I get following error
/home/pi/Documents/Adeept_RFID_Learning_Kit_Python_Code_for_RPi-master/19_RFID/MFRC522-python/MFRC522.py:113: RuntimeWarning: This channel is already in use, continuing anyway.Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(22, GPIO.OUT)
Traceback (most recent call last):
File "Read.py", line 21, in <module>
    MIFAREReader = MFRC522.MFRC522()
File "/home/pi/Documents/Adeept_RFID_Learning_Kit_Python_Code_for_RPi-master/19_RFID/MFRC522-python/MFRC522.py", line 115, in __init__
    self.MFRC522_Init()
File "/home/pi/Documents/Adeept_RFID_Learning_Kit_Python_Code_for_RPi-master/19_RFID/MFRC522-python/MFRC522.py", line 386, in MFRC522_Init
    self.MFRC522_Reset();
File "/home/pi/Documents/Adeept_RFID_Learning_Kit_Python_Code_for_RPi-master/19_RFID/MFRC522-python/MFRC522.py", line 118, in MFRC522_Reset
    self.Write_MFRC522(self.CommandReg, self.PCD_RESETPHASE)
File "/home/pi/Documents/Adeept_RFID_Learning_Kit_Python_Code_for_RPi-master/19_RFID/MFRC522-python/MFRC522.py", line 121, in Write_MFRC522
    spi.transfer(((addr<<1)&0x7E,val))
TypeError: function takes exactly 2 arguments (1 given)

1557111628 Publish time 2019-10-28 10:44:37

The warning is because the status of the GPIO is not cleared after running the program of the previous course, and it will not affect the operation of the program. The error may be that the MFRC522 library have not been installed, please refer to the manual.

1603578179 Publish time 2020-10-25 06:26:15


The Problem still occurs, is there any update?

Adeept Publish time 2021-2-4 17:10:15

1603578179 replied at 2020-10-25 06:26 AM
The Problem still occurs, is there any update?

We have updated the manual and code, please download again (V3.0 version):
https://www.adeept.com/learn/detail-23.html

Pages: [1]
View full version: RFID code not working lesson 19