Skip to content

Commit 3359c48

Browse files
SDConfig.h file was added.
1 parent 1c56f58 commit 3359c48

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/SD.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
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.

src/SDConfig.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#pragma once
2+
3+
#ifndef _SD_Config_h
4+
#define _SD_Config_h
5+
6+
#define CS_PIN 10
7+
8+
#endif

0 commit comments

Comments
 (0)