-
Notifications
You must be signed in to change notification settings - Fork 1
Improve docs, add mkdocs & readthedocs config #32
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
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # Read the Docs configuration file | ||
| # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
|
||
| # Required | ||
| version: 2 | ||
|
|
||
| # Set the OS, Python version, and other tools you might need | ||
| build: | ||
| os: ubuntu-24.04 | ||
| tools: | ||
| python: "3.13" | ||
|
|
||
| mkdocs: | ||
| configuration: mkdocs.yml | ||
| fail_on_warning: false | ||
|
|
||
| python: | ||
| install: | ||
| - method: pip | ||
| path: . | ||
| extra_requirements: | ||
| - docs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| <!-- | ||
| SPDX-FileCopyrightText: 2026 PN5180-tagomatic contributors | ||
| SPDX-License-Identifier: GPL-3.0-or-later | ||
| --> | ||
|
|
||
| # PN5180 Tagomatic | ||
| A USB connected RFID Reader/Writer with a python interface. | ||
|
|
||
| --- | ||
|
|
||
| A PN5180 card is connected to a Raspberry Pi Pico Zero via SPI. | ||
| The Pico Zero runs an arduino firmware which exposes a SimpleRPC | ||
| interface which this python module uses via USB to communicate | ||
| with RFID tags. | ||
|
|
||
| ## Features | ||
|
|
||
| - Python library for easy integration. | ||
| - Uses USB serial communication to the reader. | ||
| - Cross-platform support (Linux, Windows, macOS). | ||
| - Finds and selects ISO/IEC 14443A and ISO/IEC 15693 cards. | ||
| - Can read/write the cards' memories. | ||
| - Can authenticate against Mifare classic cards to read their memories. | ||
| - Supports multiple cards within the field. | ||
|
|
||
| ## API Documentation | ||
|
|
||
| See [API Reference](reference.md). | ||
|
|
||
| ## Installation | ||
|
|
||
| ### Python Package | ||
|
|
||
| Install from PyPI: | ||
|
|
||
| ```bash | ||
| pip install pn5180-tagomatic | ||
| ``` | ||
|
|
||
| ### Building the hardware | ||
|
|
||
| See | ||
| [here](https://github.com/bofh69/pn5180-tagomatic/tree/main/sketch/README.md) | ||
| for instructions on the hardware and the firmware. | ||
|
|
||
| ## Usage | ||
|
|
||
| ```python | ||
| from pn5180_tagomatic import PN5180, RxProtocol, TxProtocol | ||
|
|
||
| # Create reader instance and use it | ||
| with PN5180("/dev/ttyACM0") as reader: | ||
| versions = reader.ll.read_eeprom(0x10, 6) | ||
| with reader.start_session( | ||
| TxProtocol.ISO_14443_A_106, RxProtocol.ISO_14443_A_106 | ||
| ) as session: | ||
| card = session.connect_one_iso14443a() | ||
| print(f"Reading from card {card.id}") | ||
| memory = card.read_memory() | ||
| ``` | ||
|
|
||
| ## License | ||
|
|
||
| This project is licensed under the GNU General Public License v3.0 or later (GPL-3.0-or-later). | ||
|
|
||
| ## Contributing | ||
|
|
||
| Contributions are welcome! | ||
|
|
||
| ## Acknowledgments | ||
|
|
||
| This project uses FastLED by Daniel Garcia et al. | ||
|
|
||
| SimpleRPC by Jeroen F.J. Laros, Chris Flesher et al is also used. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ::: src.pn5180_tagomatic |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # SPDX-FileCopyrightText: 2026 PN5180-tagomatic contributors | ||
| # SPDX-License-Identifier: CC0-1.0 | ||
|
|
||
| site_name: PN5180 Tagomatic | ||
| repo_url: https://github.com/bofh69/pn5180-tagomatic | ||
|
|
||
| theme: | ||
| name: "material" | ||
| palette: | ||
| scheme: slate | ||
|
|
||
| plugins: | ||
| - search | ||
| - mkdocstrings | ||
|
|
||
| nav: | ||
| - Home: 'README.md' | ||
| - API Reference: 'reference.md' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.