pimylifeup / MFRC522-python

Library utilized for Pi My Life Up's guide on setting up an RFID RC522 reader.
https://pimylifeup.com/raspberry-pi-rfid-rc522/
GNU Lesser General Public License v3.0
193 stars 170 forks source link

possible to drive multiple RC522s over SPI? #30

Open BruceJohnJennerLawso opened 3 years ago

BruceJohnJennerLawso commented 3 years ago

According to this source, the RPI can use arbitrary gpio pins as CS lines for more than 2 spi devices

https://raspberrypi.stackexchange.com/questions/31932/add-more-than-2-spi-slaves

It seems like this library has the pin configuration hard-coded to spi0.

Ideally Id like to drive 18 different RC522s from the same raspberry pi, although only one of them needs to be active at any given time.