Added 'dev' parameter

This commit is contained in:
Lukasz Szczesny 2014-07-13 16:36:22 +02:00
parent deae8836b4
commit 22ac7b84b8

View file

@ -104,8 +104,8 @@ class MFRC522:
serNum = []
def __init__(self,spd=1000000):
spi.openSPI(speed=spd)
def __init__(self,dev='/dev/spidev0.0',spd=1000000):
spi.openSPI(device=dev,speed=spd)
GPIO.setmode(GPIO.BOARD)
GPIO.setup(22, GPIO.OUT)
GPIO.output(self.NRSTPD, 1)