Hi,
in a project I'm using a 1" OLED display and an SD Card module on an Arduiono Nano 328. Each device works on it's own, but they don't work simultaneously.
As they are both SPI, I guess they must be configured as MASTER and SLAVE. To my little knowledge this is done by the SS (Slave Select) line of each device. If that line is HIGH, the
device is master, if its LOW it is slave. Unfortunately, none of the devices has a SS input.
The OLED module has the CS line hardwired to ground, so I guess it must be slave. With the SD CS line connected to pin 10 (default SS output pin on the Arduino) it works, but the OLED shows jibberish.
This is the display
http://www.electrodragon.com/product/0-96-12864-oled-display-iicspi/
and this is the SD card module
I'm using the default SD.h library from the Arduino examples for the SD card module and the Adafruit_SSD1306 library for the OLED.
My question is first and foremost: can these two devices work simultaneously at all? And if yes, how do I tell each device who's to receive the data?
Christina