From 68963702c1cc9718c0fc3a6c666cd3e1d65adaa5 Mon Sep 17 00:00:00 2001 From: Marek2k17 Date: Tue, 20 Mar 2018 10:55:12 +0100 Subject: [PATCH] replace number with variable i googled for changing the pin 22, i only found a hint to line 10 so i changed line 113 to use the variable from line 10 instead of the number --- MFRC522.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MFRC522.py b/MFRC522.py index 6f157c2..ade1620 100644 --- a/MFRC522.py +++ b/MFRC522.py @@ -110,7 +110,7 @@ class MFRC522: 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.setup(NRSTPD, GPIO.OUT) GPIO.output(self.NRSTPD, 1) self.MFRC522_Init()