Added 'dev' parameter
This commit is contained in:
parent
deae8836b4
commit
22ac7b84b8
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue