ondryaso / pi-rc522

Raspberry Pi Python library for SPI RFID RC522 module
MIT License
417 stars 149 forks source link

get_access_bits function not callable #54

Open MirMiz opened 5 years ago

MirMiz commented 5 years ago

Trying to call the def get_access_bits(self, c1, c2, c3) function, defined in pirc522/util.py, line 138 I get an AttributeError: 'RFIDUtil' object has no attribute 'get_access_bits'

I just added

# transport configuration
c1 = (0,0,0,0) 
c2 = (0,0,0,0)
c3 = (0,0,0,1)
b1,b2,b3 = util.get_access_bits(c1, c2, c3)

in the examples/UtilExample.py, line 12. Also tried to call get_access_bits within the loop, e.g. line 49.

Any suggestions?

MirMiz commented 5 years ago

https://github.com/ondryaso/pi-rc522/blob/9d9103e9701c105ba2348155e91f21ef338c4bd3/pirc522/util.py#L138-L150