Fail to display string on oled (SPI) from SD module

hi There,

i am working on a project in which data from sd card is displayed on the oled screen both using SPI communication, but it is not displaying anything.

i commented out the sd part and then oled works fine.

i got to know that problem orgnates from "SD.begin(4)".

please help me..

sketch_may04b.ino (1.84 KB)

That is not the correct syntax for opening a file. Look at the Datalogger example in the IDE.