Pages: [1]   Go Down
Author Topic: SD library on Mega  (Read 383 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello All,

I have a LCD shield with an SD card reader: http://www.electrokit.com/2-4-tft-lcd-touch-shield-for-arduino.49420
Screen and SD card reader works ok on the UNO 16MHz. In a Mega 16MHz the screen works but not the SD card. Tried all chip select pins (SD_CS) from 0-69, the  SD.begin(SD_CS) fails. Further investigation shows that it's card.init(SPI_HALF_SPEED, SD_CS) that fails.

Any clue?

Regard
Peter
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Never mind, used Adafruit's SD library instead, working.
https://github.com/adafruit/SD with:
SD.begin(10, 11,12,13)
Regards
Peter
Logged

Pages: [1]   Go Up
Jump to: