Skip to content
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

Add support in SimpleMFRC522 to read or write any sector #24

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

declanshanaghy
Copy link

@declanshanaghy declanshanaghy commented May 19, 2020

@death-droid Figured this would be a handy addition back in the main line. Lots of changes in formatting since PyCharm did that automatically with code formatting.

The actual changes are pretty minimal. Just added optional parameters to the read and write methods to specify the user blocks and trailer block on each call. They can then be used to write more than a total of 48 bytes to the chip.

e.g: https://github.com/declanshanaghy/gwent/blob/645d1fa7410e7f28a247d49db28ebb75f2a679e1/software/gwent/gwent/hal/mfrc522_entrypoints.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant