Skip to content

Commit f647a3c

Browse files
authored
Merge pull request #72 from sparkfun/spiSD
Add SS declaration to Arduino.h for SD lib compatibility
2 parents 654ff2c + 126c10f commit f647a3c

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

cores/arduino/ard_sup/Arduino_defines.h

+2
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,5 @@
4848
#define bit(b) (1UL << (b))
4949

5050
#define digitalPinToInterrupt(P) (P) // all apollo3 pads are interrupt capable
51+
52+
#define SS 255 //Built in SD library requires an SS pin be defined. Pin # is arbitrary.

variants/SparkFun_Artemis_Thing_Plus/config/variant.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,16 @@ extern Uart Serial1;
6262
// SPI Pins
6363
#define MOSI 11
6464
#define MISO 12
65-
#define SCK 13
65+
#define SCK 13
6666
// Wire Pins
67-
#define SCL 15
68-
#define SDA 14
67+
#define SCL 15
68+
#define SDA 14
6969
// Wire1 Pins
7070
#define SCL1 17
7171
#define SDA1 16
7272
// Serial1 Pins
73-
#define TX1 1
74-
#define RX1 0
73+
#define TX1 1
74+
#define RX1 0
7575
// PDM Microphone Pins
7676
#define MIC_DATA 27
7777
#define MIC_CLOCK 28

0 commit comments

Comments
 (0)