I am doing a project on an Arduino Mega 2560 and I want to use a MFRC522 RFID, but I already have an UTFT-Display with Shield wich covers most of my pins.
On the documentation the pins of the RFID for an Arduino Mega 2560 are:
SDA on D9, SCK on D52, MOSI on D51,MISO on D50 and RST on D8.
I am able to change the SDA and RST pins when definig them in my program but the pins D50,51 and 52 are already taken by the Display, and I don´t know how to change them in my sketch.
Do you know how to do that, and can I therefor use analog pins like A1,...?
The SPI pins are fixed in MCU hardware. You can't reassign them to different pins. Actually, SDA is also fixed in hardware, so your comment about reassigning it is extremely puzzling. Every Mega I've seen has SDA/SCL on pins 20,21.
The MISO, MOSI, and SCLK pin are shared across all SPI devices. Each device has a SlaveSelect line that is pulled LOW to let it know that it has permission to use the SPI bus.