-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spi.transfert type error #23
Comments
same problem here. No working with MFRC522 because only one argument is given. |
Try removing one set of paranthesis perhaps?
…On Thu, Feb 21, 2019 at 6:22 AM Highlife93 ***@***.***> wrote:
same problem here. No working with MFRC522 because only one argument is
given.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#23 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABiD8Cp7Uwnogjq_D12Bu0r-omaXP48oks5vPqubgaJpZM4bHKYh>
.
|
@lthiery hi! since the latest commits, the library https://github.com/mxgxw/MFRC522-python is not working anymore as the tag is not even detected :/ (tried with multiple raspberry pi 3, multiple cables, RFID readers...) |
@saphirblanc that repo is no longer being maintained. It's best to use pi-rc522 |
Same problem: How can I get the previous version it worked perfect with this one? |
Hi all, I didn't notice the API change, but I'd guess that removing one set of parenthesis might resolve it? That seems like a general style improvement to me if that's the case. I apologize for not having more time to maintain this project; I'm trying to add collaborators as they bring in PRs. As such, I've invited @naleefer as a collaborator so hopefully that improves support from this project. All the best, |
Hi all, To follow up on this, there has been an API change, but it is rather minor. Previously the module maintained the spi device properties behind the scenes in global variables, which prevented the module from using both chip select pins in the same process. On top of this, there were some memory handling issues that prevented repeatedly using the spi.openSPI(...) and spi.closeSPI() to get around this. The changes are documented in the updated README.md, along with examples of the new usage. spi.openSPI(...) returns a handle that should be preserved for later calls to spi.transfer(..) and spi.closeSPI(). For the MFRC522 case, I also forked that repository and made an update to reflect the new API for this library: MFRC522. Best, |
if you guys dont wanna redo all work with your code just rollback to this commit, 8cce26b |
@saphirblanc you. saved. my. day. ❤️ |
Have you been able to resolve this issue? and if so could you kindly explain how you did it? I'm still struggling with getting the RFID to read/write the tags |
This problem has been solved on this fork of the repo: https://github.com/mxgxw/MFRC522-python |
Either you linked to the wrong repo or the fix has been rolled back because i still get this error |
the command spi.transfer((2,15)) return the error
TypeError: function takes exactly 2 arguments (1 given)
This command used to work before recent commit.
The text was updated successfully, but these errors were encountered: