File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 20
20
#include " utility/SdFat.h"
21
21
#include " utility/SdFatUtil.h"
22
22
23
+ #include < SDConfig.h>
24
+
23
25
#define FILE_READ O_READ
24
26
#define FILE_WRITE (O_READ | O_WRITE | O_CREAT | O_APPEND)
25
27
@@ -68,7 +70,7 @@ namespace SDLib {
68
70
public:
69
71
// This needs to be called to set up the connection to the SD card
70
72
// before other methods are used.
71
- bool begin (uint8_t csPin = SD_CHIP_SELECT_PIN );
73
+ bool begin (uint8_t csPin = CS_PIN );
72
74
bool begin (uint32_t clock, uint8_t csPin);
73
75
74
76
// call this when a card is removed. It will allow you to insert and initialise a new card.
Original file line number Diff line number Diff line change
1
+ #pragma once
2
+
3
+ #ifndef _SD_Config_h
4
+ #define _SD_Config_h
5
+
6
+ #define CS_PIN 10
7
+
8
+ #endif
You can’t perform that action at this time.
0 commit comments