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
This commit is contained in:
parent
8ddc994007
commit
68963702c1
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ class MFRC522:
|
||||||
def __init__(self, dev='/dev/spidev0.0', spd=1000000):
|
def __init__(self, dev='/dev/spidev0.0', spd=1000000):
|
||||||
spi.openSPI(device=dev,speed=spd)
|
spi.openSPI(device=dev,speed=spd)
|
||||||
GPIO.setmode(GPIO.BOARD)
|
GPIO.setmode(GPIO.BOARD)
|
||||||
GPIO.setup(22, GPIO.OUT)
|
GPIO.setup(NRSTPD, GPIO.OUT)
|
||||||
GPIO.output(self.NRSTPD, 1)
|
GPIO.output(self.NRSTPD, 1)
|
||||||
self.MFRC522_Init()
|
self.MFRC522_Init()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue