I've compiled SDCard Info example with the updated OLED Display Library and it works fin, jut do't forhet to switch SS between the display and SDCard. Here is a sample code:
const int chipSelect = 23;
DIP_OLED oled;
char s[20];
void switch_sd_ss(void)
{
//Select CS output to SD Card
DDRB |= (1 << 4) | (1 << 5);
PORTB |= (1 << 4);
PORTB &= ~(1 << 5);
delay(2);
}
void out_text(int x, int y, const char * str)
{
oled.out_text(x, y, str);
oled.display();
switch_sd_ss();
}
void setup() {
oled.init();
oled.clear();
out_text(12, 10, "SD Card Test");
...
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.