{"id":13613405,"url":"https://github.com/wendlers/micropython-mfrc522","last_synced_at":"2025-08-17T18:41:24.412Z","repository":{"id":48613110,"uuid":"60035433","full_name":"wendlers/micropython-mfrc522","owner":"wendlers","description":"(Micro)Python class to access the MFRC522 RFID reader","archived":false,"fork":false,"pushed_at":"2024-01-18T00:48:45.000Z","size":10,"stargazers_count":176,"open_issues_count":21,"forks_count":118,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-05-26T06:49:04.288Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wendlers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-30T19:54:40.000Z","updated_at":"2025-05-16T07:20:53.000Z","dependencies_parsed_at":"2024-01-29T19:30:21.720Z","dependency_job_id":"ab3d71fd-f9b2-462f-adb3-59c23a7044d3","html_url":"https://github.com/wendlers/micropython-mfrc522","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wendlers/micropython-mfrc522","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wendlers%2Fmicropython-mfrc522","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wendlers%2Fmicropython-mfrc522/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wendlers%2Fmicropython-mfrc522/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wendlers%2Fmicropython-mfrc522/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wendlers","download_url":"https://codeload.github.com/wendlers/micropython-mfrc522/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wendlers%2Fmicropython-mfrc522/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270892159,"owners_count":24663543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T20:00:46.124Z","updated_at":"2025-08-17T18:41:24.345Z","avatar_url":"https://github.com/wendlers.png","language":"Python","funding_links":[],"categories":["精选驱动库","Libraries"],"sub_categories":["通讯类","Communications"],"readme":"# micropython-mfrc522\n(Micro)Python class to access the MFRC522 RFID reader\n\nBasic class to access RFID readers of the type [MFRC522](http://www.nxp.com/documents/data_sheet/MFRC522.pdf). \nThis is basically a re-write of [this](https://github.com/mxgxw/MFRC522-python) Python port for the MFRC522. I \ntried to strip things down and make them more \"pythonic\" so the result is small enough to run on \n[Micropython](https://github.com/micropython/micropython) boards. I tried the class so far on the \n[ESP8266](https://github.com/micropython/micropython/tree/master/esp8266) and \nthe [WiPy](https://github.com/micropython/micropython/tree/master/cc3200). \n\n## Usage\n\nPut the modules ``mfrc522.py``, ``examples/read.py``, ``examples/write.py`` to the root of the flash FS on your board. \nFor the ESP8266 there are multiple solutions to do that. E.g. use the \n[WebREPL file transfer](https://github.com/micropython/webrepl), or [mpfshell](https://github.com/wendlers/mpfshell). \n \nI used the following pins for my setup:\n\n| Signal    | GPIO ESP8266 | GPIO WiPy      | Note                                 |\n| --------- | ------------ | -------------- | ------------------------------------ |\n| sck       | 0            | \"GP14\"         |                                      |\n| mosi      | 2            | \"GP16\"         |                                      |\n| miso      | 4            | \"GP15\"         |                                      |\n| rst       | 5            | \"GP22\"         |                                      |\n| cs        | 14           | \"GP14\"         |Labeled SDA on most RFID-RC522 boards |\n \nNow enter the REPL you could run one of the two exmaples: \n\nFor detecting, authenticating and reading from a card:\n \n    import read\n    read.do_read()\n    \nThis will wait for a MifareClassic 1k card. As soon the card is detected, it is authenticated, and \n16 bytes are read from address 0x08.\n\nFor detecting, authenticating and writing to a card:\n\n    import write\n    write.do_write()\n\nThis will wait for a MifareClassic 1k card. As soon the card is detected, it is authenticated, and \n16 bytes written to address 0x08.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwendlers%2Fmicropython-mfrc522","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwendlers%2Fmicropython-mfrc522","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwendlers%2Fmicropython-mfrc522/lists"}