erivandosena / TwoRC522RPi

Two RFID readers with Raspberry Pi
10 stars 7 forks source link

How to use SPi1 with RC522 ? #1

Open magneticlab-ch opened 7 years ago

magneticlab-ch commented 7 years ago

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.

ghost commented 7 years ago

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 commented 7 years ago

in order MFC522 to work on orange pi, those lines need to be commented. So i got no clue what to do in order to fix that.Dual RC522 on Orange PI PC - Allwinner H2/H3

|

Dual RC522 on Orange PI PC - Allwinner H2/H3 Dual RC522 on Orange PI PC - posted in Allwinner H2/H3: Hello, my goal is to use two RC522 RFID readers on oran... | |

|

|

On Tuesday, January 3, 2017 4:23 AM, Erivando Sena <notifications@github.com> wrote:

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() ...— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.