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 2020#include " utility/SdFat.h"
2121#include " utility/SdFatUtil.h"
2222
23+ #include < SDConfig.h>
24+
2325#define FILE_READ O_READ
2426#define FILE_WRITE (O_READ | O_WRITE | O_CREAT | O_APPEND)
2527
@@ -68,7 +70,7 @@ namespace SDLib {
6870 public:
6971 // This needs to be called to set up the connection to the SD card
7072 // before other methods are used.
71- bool begin (uint8_t csPin = SD_CHIP_SELECT_PIN );
73+ bool begin (uint8_t csPin = CS_PIN );
7274 bool begin (uint32_t clock, uint8_t csPin);
7375
7476 // 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