Skip to content

Commit

Permalink
Change spi device from spidev0.0 to spidev1.0
Browse files Browse the repository at this point in the history
Change spi device from spidev0.0 to spidev1.0
from: dev='/dev/spidev0.0'
to: dev='/dev/spidev1.0'
  • Loading branch information
aissarmurad authored Oct 27, 2017
1 parent 03df003 commit 8ecd895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MFRC522.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class MFRC522:

serNum = []

def __init__(self, dev='/dev/spidev0.0', spd=1000000):
def __init__(self, dev='/dev/spidev1.0', spd=1000000):
spi.openSPI(device=dev,speed=spd)
GPIO.setmode(GPIO.BOARD)
GPIO.setup(22, GPIO.OUT)
Expand Down

0 comments on commit 8ecd895

Please sign in to comment.