forked from greiman/SdFat-beta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSoftwareSPI.txt
49 lines (45 loc) · 1.71 KB
/
SoftwareSPI.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Software SPI is now supported on AVR, Due, and Teensy 3.x boards.
Edit these variables in SdFatConfig.h to enable Software SPI.
//------------------------------------------------------------------------------
/**
* Define AVR_SOF_SPI nonzero to use software SPI on all AVR Arduinos.
*/
#define AVR_SOFT_SPI 0
//------------------------------------------------------------------------------
/**
* Define DUE_SOFT_SPI nonzero to use software SPI on Due Arduinos.
*/
#define DUE_SOFT_SPI 0
//------------------------------------------------------------------------------
/**
* Define LEONARDO_SOFT_SPI nonzero to use software SPI on Leonardo Arduinos.
* LEONARDO_SOFT_SPI allows an unmodified 328 Shield to be used
* on Leonardo Arduinos.
*/
#define LEONARDO_SOFT_SPI 0
//------------------------------------------------------------------------------
/**
* Define MEGA_SOFT_SPI nonzero to use software SPI on Mega Arduinos.
* MEGA_SOFT_SPI allows an unmodified 328 Shield to be used
* on Mega Arduinos.
*/
#define MEGA_SOFT_SPI 0
//------------------------------------------------------------------------------
/**
* Set TEENSY3_SOFT_SPI nonzero to use software SPI on Teensy 3.x boards.
*/
#define TEENSY3_SOFT_SPI 0
//------------------------------------------------------------------------------
/**
* Define software SPI pins. Default allows Uno shields to be used on other
* boards.
*/
// define software SPI pins
/** Default Software SPI chip select pin */
uint8_t const SOFT_SPI_CS_PIN = 10;
/** Software SPI Master Out Slave In pin */
uint8_t const SOFT_SPI_MOSI_PIN = 11;
/** Software SPI Master In Slave Out pin */
uint8_t const SOFT_SPI_MISO_PIN = 12;
/** Software SPI Clock pin */
uint8_t const SOFT_SPI_SCK_PIN = 13;