Skip to content

Commit 95a8401

Browse files
committed
refactor complete library
license LGPL-2.1 split into different files cleanup examples injectable driver for PCD communication
1 parent 99c2142 commit 95a8401

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+2985
-5937
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ MFRC522.zip
33
# ignore IDE files
44
.idea
55
cmake
6-
CMakeLists.txt
6+
cmake-build-debug
7+
CMakeLists.txt

.travis.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,13 @@ cache:
1010

1111
env:
1212
# add examples here and define which boards should be tested (only compile test)
13-
- PLATFORMIO_CI_SRC=examples/ChangeUID/ChangeUID.ino TESTBOARD=arduino_avr,arduino_arm,esp
13+
- PLATFORMIO_CI_SRC=examples/CustomI2C/CustomI2C.ino TESTBOARD=arduino_avr,arduino_arm,esp
14+
- PLATFORMIO_CI_SRC=examples/CustomSPI/CustomSPI.ino TESTBOARD=arduino_avr,arduino_arm,esp
15+
- PLATFORMIO_CI_SRC=examples/Hack/ChangeUID/ChangeUID.ino TESTBOARD=arduino_avr,arduino_arm,esp
16+
- PLATFORMIO_CI_SRC=examples/Hack/FixBrickedUID/FixBrickedUID.ino TESTBOARD=arduino_avr,arduino_arm,esp
17+
- PLATFORMIO_CI_SRC=examples/CheckFirmware/CheckFirmware.ino TESTBOARD=arduino_avr,arduino_arm,esp
1418
- PLATFORMIO_CI_SRC=examples/DumpInfo/DumpInfo.ino TESTBOARD=arduino_avr,arduino_arm,esp
15-
- PLATFORMIO_CI_SRC=examples/firmware_check/firmware_check.ino TESTBOARD=arduino_avr,arduino_arm,esp
16-
- PLATFORMIO_CI_SRC=examples/FixBrickedUID/FixBrickedUID.ino TESTBOARD=arduino_avr,arduino_arm,esp
17-
- PLATFORMIO_CI_SRC=examples/MifareClassicValueBlock/MifareClassicValueBlock.ino TESTBOARD=arduino_avr,arduino_arm,esp
18-
- PLATFORMIO_CI_SRC=examples/MinimalInterrupt/MinimalInterrupt.ino TESTBOARD=arduino_avr,arduino_arm,esp
19-
- PLATFORMIO_CI_SRC=examples/ReadAndWrite/ReadAndWrite.ino TESTBOARD=arduino_avr,arduino_arm,esp
2019
- PLATFORMIO_CI_SRC=examples/ReadUidMultiReader/ReadUidMultiReader.ino TESTBOARD=arduino_avr,arduino_arm,esp
21-
- PLATFORMIO_CI_SRC=examples/rfid_default_keys/rfid_default_keys.ino TESTBOARD=arduino_avr,arduino_arm,esp
22-
- PLATFORMIO_CI_SRC=examples/rfid_write_personal_data/rfid_write_personal_data.ino TESTBOARD=arduino_avr,arduino_arm,esp
23-
- PLATFORMIO_CI_SRC=examples/Ntag216_AUTH/Ntag216_AUTH.ino TESTBOARD=arduino_avr,arduino_arm,esp
24-
- PLATFORMIO_CI_SRC=examples/ReadNUID/ReadNUID.ino TESTBOARD=arduino_avr,arduino_arm,esp
25-
- PLATFORMIO_CI_SRC=examples/AccessControl/AccessControl.ino TESTBOARD=arduino_avr
26-
- PLATFORMIO_CI_SRC=examples/RFID-Cloner/RFID-Cloner.ino TESTBOARD=arduino_avr,arduino_arm,esp
27-
- PLATFORMIO_CI_SRC=examples/rfid_read_personal_data/rfid_read_personal_data.ino TESTBOARD=arduino_avr,arduino_arm,esp
2820

2921
install:
3022
- pip install -U platformio

README.rst

Lines changed: 25 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,41 @@
1-
MFRC522
1+
Arduino_MFRC522v2
22
=======
33

4-
.. image:: https://img.shields.io/maintenance/no/2019.svg
4+
.. image:: https://img.shields.io/badge/maintained-very%20rarely-orange
55
:target: `development`_
6-
.. image:: https://travis-ci.org/miguelbalboa/rfid.svg?branch=master
7-
:target: https://travis-ci.org/miguelbalboa/rfid
6+
.. image:: https://travis-ci.org/OSSLibraries/Arduino_MFRC522v2.svg?branch=master
7+
:target: https://travis-ci.org/OSSLibraries/Arduino_MFRC522v2
88
.. image:: https://img.shields.io/badge/C%2B%2B-11-brightgreen.svg
99
:target: `compatible ide`_
10-
.. image:: https://img.shields.io/github/release/miguelbalboa/rfid.svg?colorB=green
11-
:target: https://github.com/miguelbalboa/rfid/releases
12-
.. image:: https://img.shields.io/badge/ArduinoIDE-%3E%3D1.6.10-lightgrey.svg
10+
.. image:: https://img.shields.io/github/release/OSSLibraries/Arduino_MFRC522v2.svg?colorB=green
11+
:target: https://github.com/OSSLibraries/Arduino_MFRC522v2/releases
12+
.. image:: https://img.shields.io/badge/ArduinoIDE-%3E%3D1.8.12-lightgrey.svg
1313
:target: `compatible ide`_
1414

15-
Arduino library for MFRC522 and other RFID RC522 based modules.
15+
Advanced Arduino driver library for MFRC522 and other RFID RC522 based modules.
1616

17-
Read and write different types of Radio-Frequency IDentification (RFID) cards
18-
on your Arduino using a RC522 based reader connected via the Serial Peripheral
19-
Interface (SPI) interface.
17+
Read and write different types of Radio-Frequency IDentification (RFID) cards on your Arduino using a RC522 based reader connected via the Serial Peripheral Interface (SPI) or I2C interface.
2018

19+
Hints for this version
20+
----------
21+
22+
* Fork of https://github.com/miguelbalboa/rfid/
23+
* Changed license to GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1.
24+
* Target group are experienced makers.
25+
* Code was heavily split up for better maintenance.
26+
* Hardware interface is fully customisable.
27+
* Use of software reset. No reset pin.
28+
* Some parts were removed.
2129

2230
.. _development:
2331
Development
2432
----------
2533

26-
**The development by owner miguelbalboa has ended**.
27-
28-
**Feature status: complete freeze**; no function or API change.
34+
**Feature status: open**; focus on rfid; no applications;
2935

30-
**Code status: partial freeze**; just fixes/typos or documentation updates; *no* extensions for other boards; *no* new examples.
31-
32-
**Maintenance status: sporadically**.
33-
34-
**Why no further development?**
35-
This library has a long history and is used in many projects. These projects often do not document what version they use. Committing changes might break those old projects and lead to bad experiences (for beginners) and support requests. For these reasons the library is in freeze mode. You can still commit typo, documentation or bug fixes.
36+
**Code status: open**; fixes/typos or documentation updates; *no* specific code for other boards; *avoid* examples;
3637

38+
**Maintenance status: sporadically**;
3739

3840
.. _before buy:
3941
Before buy
@@ -73,7 +75,6 @@ What works and not?
7375
#. Use of IRQ pin. But there is a proof-of-concept example.
7476
#. With Intel Galileo (Gen2) see `#310 <https://github.com/miguelbalboa/rfid/issues/310>`__, not supported by software.
7577
#. Power reduction modes `#269 <https://github.com/miguelbalboa/rfid/issues/269>`_, not supported by software.
76-
#. I2C instead of SPI `#240 <https://github.com/miguelbalboa/rfid/issues/240>`_, not supported by software.
7778
#. UART instead of SPI `#281 <https://github.com/miguelbalboa/rfid/issues/281>`_, not supported by software.
7879

7980
* **Need more?**
@@ -302,31 +303,10 @@ Troubleshooting
302303
.. _license:
303304
License
304305
-------
305-
This is free and unencumbered software released into the public domain.
306-
307-
Anyone is free to copy, modify, publish, use, compile, sell, or
308-
distribute this software, either in source code form or as a compiled
309-
binary, for any purpose, commercial or non-commercial, and by any
310-
means.
311-
312-
In jurisdictions that recognize copyright laws, the author or authors
313-
of this software dedicate any and all copyright interest in the
314-
software to the public domain. We make this dedication for the benefit
315-
of the public at large and to the detriment of our heirs and
316-
successors. We intend this dedication to be an overt act of
317-
relinquishment in perpetuity of all present and future rights to this
318-
software under copyright law.
319-
320-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
321-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
322-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
323-
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
324-
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
325-
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
326-
OTHER DEALINGS IN THE SOFTWARE.
327-
328-
For more information, please refer to https://unlicense.org/
329306

307+
GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1.
308+
309+
It is not allowed to change the license.
330310

331311
.. _dependency:
332312
Dependency

changes.txt

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
-- Add changes to unreleased tag until we make a release.
22

3-
xx 2020, v1.4.8
3+
xx 2020, v2.0.1
4+
5+
6+
25 Jun 2020, v2.0.0
7+
- Changed license to GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1.
8+
- Target group are experienced makers.
9+
- Code was heavily split up for better maintenance.
10+
- Hardware interface is fully customisable. Use MFRC522Driver.h.
11+
- Use of software reset. No reset pin.
12+
- Removed many examples, focus on basic function
13+
14+
25 Jun 2020, v1.4.7
15+
- Fixed typos
16+
- Moved PICC memory layout to /doc
417

518
25 Jun 2020, v1.4.7
619
- Fixed typos

0 commit comments

Comments
 (0)