File tree Expand file tree Collapse file tree 7 files changed +42
-0
lines changed
Expand file tree Collapse file tree 7 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 1111// include the SD library:
1212#include < STM32SD.h>
1313
14+ // If SD card slot has no detect pin then define it as SD_DETECT_NONE
15+ // to ignore it. One other option is to call 'card.init()' without parameter.
16+ #ifndef SD_DETECT_PIN
17+ #define SD_DETECT_PIN SD_DETECT_NONE
18+ #endif
19+
1420Sd2Card card;
1521SdFatFs fatFs;
1622
Original file line number Diff line number Diff line change 1212
1313#include < STM32SD.h>
1414
15+ // If SD card slot has no detect pin then define it as SD_DETECT_NONE
16+ // to ignore it. One other option is to call 'SD.begin()' without parameter.
17+ #ifndef SD_DETECT_PIN
18+ #define SD_DETECT_PIN SD_DETECT_NONE
19+ #endif
20+
1521uint32_t A[] = { A0, A1, A2};
1622
1723void setup ()
Original file line number Diff line number Diff line change 1313
1414#include < STM32SD.h>
1515
16+ // If SD card slot has no detect pin then define it as SD_DETECT_NONE
17+ // to ignore it. One other option is to call 'SD.begin()' without parameter.
18+ #ifndef SD_DETECT_PIN
19+ #define SD_DETECT_PIN SD_DETECT_NONE
20+ #endif
21+
1622void setup ()
1723{
1824 // Open serial communications and wait for port to open:
Original file line number Diff line number Diff line change 1010 */
1111#include < STM32SD.h>
1212
13+ // If SD card slot has no detect pin then define it as SD_DETECT_NONE
14+ // to ignore it. One other option is to call 'SD.begin()' without parameter.
15+ #ifndef SD_DETECT_PIN
16+ #define SD_DETECT_PIN SD_DETECT_NONE
17+ #endif
18+
1319File myFile;
1420
1521void setup ()
Original file line number Diff line number Diff line change 11#include < STM32SD.h>
22
3+ // If SD card slot has no detect pin then define it as SD_DETECT_NONE
4+ // to ignore it. One other option is to call 'SD.begin()' without parameter.
5+ #ifndef SD_DETECT_PIN
6+ #define SD_DETECT_PIN SD_DETECT_NONE
7+ #endif
8+
39#define COUNTOF (__BUFFER__ ) (sizeof (__BUFFER__) / sizeof (*(__BUFFER__)))
410#define BUFFERSIZE (COUNTOF(wtext) -1 )
511
Original file line number Diff line number Diff line change 1111
1212#include < STM32SD.h>
1313
14+ // If SD card slot has no detect pin then define it as SD_DETECT_NONE
15+ // to ignore it. One other option is to call 'SD.begin()' without parameter.
16+ #ifndef SD_DETECT_PIN
17+ #define SD_DETECT_PIN SD_DETECT_NONE
18+ #endif
19+
1420File myFile;
1521
1622void setup ()
Original file line number Diff line number Diff line change 1212 */
1313#include < STM32SD.h>
1414
15+ // If SD card slot has no detect pin then define it as SD_DETECT_NONE
16+ // to ignore it. One other option is to call 'SD.begin()' without parameter.
17+ #ifndef SD_DETECT_PIN
18+ #define SD_DETECT_PIN SD_DETECT_NONE
19+ #endif
20+
1521File root;
1622
1723void setup ()
You can’t perform that action at this time.
0 commit comments