Added fix to NRSTPD reference (Issue #52)
This commit is contained in:
parent
dd3596c774
commit
cf7f9ec0cc
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ class MFRC522:
|
|||
def __init__(self, dev='/dev/spidev0.0', spd=1000000):
|
||||
spi.openSPI(device=dev,speed=spd)
|
||||
GPIO.setmode(GPIO.BOARD)
|
||||
GPIO.setup(NRSTPD, GPIO.OUT)
|
||||
GPIO.setup(self.NRSTPD, GPIO.OUT)
|
||||
GPIO.output(self.NRSTPD, 1)
|
||||
self.MFRC522_Init()
|
||||
|
||||
|
|
Loading…
Reference in a new issue