|
I have the Adeept RFID Starter Kit for Raspberry Pi 3 2 Model B/B+ Python with Printed Guidebook, 40-Pin GPIO Boardand a rasberri pi 3 B and I am following the instructions for lesson 19 for python on using the RFID tag. and i have no problems up to the point of running the Read.py when i try this error comes up.
- pi@alec:/media/pi/CARL/Adeept_RFID_Kit_for_RPi_V2.0/code/Adeept_RFID_Learning_Kit_Python_Code_for_RPi/19_RFID/MFRC522-python $ sudo python Read.py
- /media/pi/CARL/Adeept_RFID_Kit_for_RPi_V2.0/code/Adeept_RFID_Learning_Kit_Python_Code_for_RPi/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 "/media/pi/CARL/Adeept_RFID_Kit_for_RPi_V2.0/code/Adeept_RFID_Learning_Kit_Python_Code_for_RPi/19_RFID/MFRC522-python/MFRC522.py", line 115, in __init__
- self.MFRC522_Init()
- File "/media/pi/CARL/Adeept_RFID_Kit_for_RPi_V2.0/code/Adeept_RFID_Learning_Kit_Python_Code_for_RPi/19_RFID/MFRC522-python/MFRC522.py", line 386, in MFRC522_Init
- self.MFRC522_Reset();
- File "/media/pi/CARL/Adeept_RFID_Kit_for_RPi_V2.0/code/Adeept_RFID_Learning_Kit_Python_Code_for_RPi/19_RFID/MFRC522-python/MFRC522.py", line 118, in MFRC522_Reset
- self.Write_MFRC522(self.CommandReg, self.PCD_RESETPHASE)
- File "/media/pi/CARL/Adeept_RFID_Kit_for_RPi_V2.0/code/Adeept_RFID_Learning_Kit_Python_Code_for_RPi/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)
Copy the Code I do not know what to do or how to fix it please help me
|
|