Oh thanks!!!
YEah i can use hardware SPI! There is a constructor fora that on the library.
But a new question that arose is my oled has two pins that i dont know where to connect them. They are labeled CS and DC.
Maybe one of these go to the pin labeled as SCK on the DUE pins?
CS pin (also called SS or NSS) is the "Chip Select" or "Slave Select" Pin. It is used when you have many SPI component on the same line. This pin can be any digital pin that you want (default is PIN 10 on the DUE).
CS pins are kept HIGH when the component is not in use. When you bring a component CS pin to LOW, it means that you want to talk to it.
On the Arduino Due, you initialize SPI like this :
SPI.begin();
Where you can put the number of your CS pin in the parenthesis. Like this (our cs pin is pin 4) :
DC pin :
The DC pin is the "Data Control" pin and it is not part of the SPI protocol. Like the CS pin, you can choose any digital pin you want to attach to it. It is used to tell the OLED module if the data from the SPI is a command or some data.
So...
I don't know what library you are using, but chances are that you need to specify to the library what is the DC pin and the CS pin.