Skip to content

Commit e6edaa2

Browse files
committed
initial update, library name change
1 parent 757c1de commit e6edaa2

File tree

5 files changed

+22
-12
lines changed

5 files changed

+22
-12
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "2.2.1"
1+
__version__ = "1.0.0"
22

33
try:
44
from .rfid import RFID
File renamed without changes.

pirc522/util.py renamed to RC522-Python/util.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf8 -*-
3+
#
4+
# Copyright (c) 2016 Ondřej Ondryáš {ondryaso} for pi-rc522
5+
# Original git of pi-rc522: https://github.com/ondryaso/pi-rc522
16

27
class RFIDUtil(object):
38
rfid = None
@@ -86,7 +91,7 @@ def do_auth(self, block_address, force=False):
8691
print("Not calling card_auth - already authed")
8792
return False
8893

89-
def write_trailer(self, sector, key_a=(0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF), auth_bits=(0xFF, 0x07, 0x80),
94+
def write_trailer(self, sector, key_a=(0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF), auth_bits=(0xFF, 0x07, 0x80),
9095
user_data=0x69, key_b=(0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF)):
9196
"""
9297
Writes sector trailer of specified sector. Tag and auth must be set - does auth.

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ A small class to interface with the NFC reader Module MFRC522 on the Raspberry P
77

88
## Requirements
99

10-
10+
The software requires a version of SPI-Py, find it in the SPI-Py folder
11+
To install, from this folder run the following commands:
12+
Or get source code from Github:
13+
```
14+
cd SPI-Py
15+
sudo python3 setup.py install
16+
```
1117
pi-rc522 consists of two Python classes for controlling an SPI RFID module "RC522" using Raspberry Pi or Beaglebone Black. You can get this module on AliExpress or Ebay for $3.
1218

1319
Based on [MFRC522-python](https://github.com/mxgxw/MFRC522-python/blob/master/README.md).

setup.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55
from setuptools import setup, find_packages
66
from setuptools.command.test import test as TestCommand
77

8-
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__),
9-
'pirc522')))
8+
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__),'RC522-Python')))
109

11-
from pirc522 import __version__ # flake8: noqa
10+
from RC522-Python import __version__ # flake8: noqa
1211
sys.path.pop(0)
1312

1413
setup(
15-
name='pi-rc522',
14+
name='RC522-Python',
1615
packages=find_packages(),
1716
include_package_data=True,
1817
version=__version__,
@@ -29,9 +28,9 @@
2928
'Programming Language :: Python :: 3',
3029
'Programming Language :: Python :: 3.5',
3130
],
32-
author='ondryaso',
33-
author_email='[email protected]',
34-
url='https://github.com/ondryaso/pi-rc522',
35-
license='MIT',
36-
install_requires=['spidev', 'RPi.GPIO'],
31+
author='STEMinds',
32+
author_email='[email protected]',
33+
url='https://github.com/STEMinds/RC522-Python',
34+
license='GNU Lesser General Public License v3.0',
35+
install_requires=['SPI-Py', 'RPi.GPIO'],
3736
)

0 commit comments

Comments
 (0)