Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 1 month ago.
SDFileSystem - can't use card detection
Hi guys!
My board is Nucleo STM32F411. I'm trying to init SDFileSystem like this:
My code
#include "mbed.h" #include "SDFileSystem.h" Timer timer; DigitalIn button(USER_BUTTON, PullUp); DigitalOut led1(LED1); SDFileSystem sd(SPI_MOSI, SPI_MISO, SPI_SCK, SPI_CS, "sd", PC_10, SWITCH_NEG_NC, 1000000); char buffer[4096]; // rest of the code // ...
It seems to be correct but compiler returns this message:
Error
Error: Identifier "SWITCH_NEG_NC" is undefined in "main.cpp", Line: 7, Col: 69
What can be wrong?