Merge pull request #51 from Marek2k17/patch-1
replace number with variable
This commit is contained in:
commit
d219b1a402
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,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