Hello im very curious about how to connect an Arduino DUE to a shield via SPI (MOSI,MISO,SCK). Im very new to this technology. The UNO is much more straight forward and its easy with the codes because it has a lot of support as opposed to the DUE. My intentions is to technically replace my UNO thats connected to an RA8875 + LCD screen and have it going. The only issue is i wouldn't know how to set it up code wise and wired. thanks i currently have an issue with my previous project because its going very slow.
i did a little reasearch on some little things like
i undertand that this part of the code is to initialize the pins but i still don't understand what goes to Miso,Mosi,Sck
void setup(){
// initialize the bus for a device on pin 4
SPI.begin(4);
// initialize the bus for a device on pin 10
SPI.begin(10);
}
i understand that this is to have control of the clock speeds of the bus and i understand how the divisor works.
void setup(){
// initialize the bus for the device on pin 4
SPI.begin(4);
// Set clock divider on pin 4 to 21
SPI.setClockDivider(4, 21);
// initialize the bus for the device on pin 10
SPI.begin(10);
// Set clock divider on pin 10 to 84
SPI.setClockDivider(10, 84);
}