1
OLEDs / SD CARD NHD 1.69 1601128ASC3 with Arduino Leonardo
« on: November 10, 2016, 04:01:24 AM »
Hello,
I have some problems with the SD CARD in my module.
I am trying to load the program "bmp" for testing the display, but i have a problem eith the SD card.
init
Initializing SD card...failed!
The original code is......and i have this for Arduino Leonardo
#define sclk 13 #define sclk 13
#define mosi 11 #define mosi 11
#define cs 5 #define cs 5
#define rst 6 #define rst 1
#define dc 4 #define dc 0
#define SD_CS 10 #define SD_CS 8
also i tr¡ed to add this 2 lines in the setup:
pinMode(SD_CS, OUTPUT);
digitalWrite(SD_CS, HIGH);
but doesn't work!
The format of the SD is FAT32
Thanks.
I have some problems with the SD CARD in my module.
I am trying to load the program "bmp" for testing the display, but i have a problem eith the SD card.
init
Initializing SD card...failed!
The original code is......and i have this for Arduino Leonardo
#define sclk 13 #define sclk 13
#define mosi 11 #define mosi 11
#define cs 5 #define cs 5
#define rst 6 #define rst 1
#define dc 4 #define dc 0
#define SD_CS 10 #define SD_CS 8
also i tr¡ed to add this 2 lines in the setup:
pinMode(SD_CS, OUTPUT);
digitalWrite(SD_CS, HIGH);
but doesn't work!
The format of the SD is FAT32
Thanks.