CliffAgius
Member
Hi All,
I am trying to read a file from the onboard SD card reader and I am struggling to get it working, I notice on this forum many posts saying that using the SD.h and SPI.h and then having a const like so:
This I have and then in my
But I get an error of:
So what am I missing? I installed the LIBs for Teensyduino and I am certain I am using the correct ones but it's got me puzzled so any help would be great.
Thanks
Cliff.
I am trying to read a file from the onboard SD card reader and I am struggling to get it working, I notice on this forum many posts saying that using the SD.h and SPI.h and then having a const like so:
Code:
const int chipSelect = BUILTIN_SDCARD;
This I have and then in my
Code:
// see if the card is present and can be initialized:
if (!SD.begin(chipSelect)) {
Serial.println("Card failed, or not present");
// don't do anything more:
while (1);
}
Serial.println("card initialized.");
But I get an error of:
error: 'BUILTIN_SDCARD' was not declared in this scope
const int chipSelect = BUILTIN_SDCARD;
So what am I missing? I installed the LIBs for Teensyduino and I am certain I am using the correct ones but it's got me puzzled so any help would be great.
Thanks
Cliff.