New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use SPi1 with RC522 ? #1

Open
magneticlab-ch opened this Issue Nov 30, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@magneticlab-ch

magneticlab-ch commented Nov 30, 2016

Hi , this is not an issue but a request...
Do you know how to connect the RC522 in order to use it on SPI1 and not SPI0 standard on Rpi3 ?

Thank you.

@erivandoramos

This comment has been minimized.

Owner

erivandoramos commented Jan 3, 2017

I have not implemented it yet, but I believe that it is enough to point to address 0.1 of spi.
ex.:
...
def init(self, dev='/dev/spidev0.1', spd=1000000):
spi.openSPI(device=dev,speed=spd)
GPIO.setmode(GPIO.BOARD)
GPIO.setup(22, GPIO.OUT)
GPIO.output(self.NRSTPD, 1)
self.MFRC522_Init()
...

@nedoskiv

This comment has been minimized.

nedoskiv commented Jan 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment