Added fix to NRSTPD reference (Issue #52)

This commit is contained in:
Mario Gómez 2018-03-25 18:04:34 -06:00
parent dd3596c774
commit cf7f9ec0cc

View file

@ -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()