mirror of
https://github.com/2martens/uni.git
synced 2026-05-06 19:36:26 +02:00
[ES] Added initialization of SD library
Signed-óff-by: Jim Martens <github@2martens.de>
This commit is contained in:
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
// pins
|
// pins
|
||||||
int slaveSelectPin = 10;
|
int slaveSelectPin = 10;
|
||||||
|
int SDslaveSelectPin = 4;
|
||||||
int rstPin = 6;
|
int rstPin = 6;
|
||||||
int dcPin = 5;
|
int dcPin = 5;
|
||||||
|
|
||||||
@ -124,6 +125,9 @@ void setup()
|
|||||||
SPI.begin(slaveSelectPin);
|
SPI.begin(slaveSelectPin);
|
||||||
SPI.setClockDivider(slaveSelectPin, divider);
|
SPI.setClockDivider(slaveSelectPin, divider);
|
||||||
|
|
||||||
|
// initialize SD
|
||||||
|
SD.begin(SDslaveSelectPin);
|
||||||
|
|
||||||
// initialize pins
|
// initialize pins
|
||||||
pinMode(dcPin, OUTPUT);
|
pinMode(dcPin, OUTPUT);
|
||||||
pinMode(rstPin, OUTPUT);
|
pinMode(rstPin, OUTPUT);
|
||||||
|
|||||||
Reference in New Issue
Block a user