mirror of
https://github.com/2martens/uni.git
synced 2026-05-06 11:26:25 +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
|
||||
int slaveSelectPin = 10;
|
||||
int SDslaveSelectPin = 4;
|
||||
int rstPin = 6;
|
||||
int dcPin = 5;
|
||||
|
||||
@ -124,6 +125,9 @@ void setup()
|
||||
SPI.begin(slaveSelectPin);
|
||||
SPI.setClockDivider(slaveSelectPin, divider);
|
||||
|
||||
// initialize SD
|
||||
SD.begin(SDslaveSelectPin);
|
||||
|
||||
// initialize pins
|
||||
pinMode(dcPin, OUTPUT);
|
||||
pinMode(rstPin, OUTPUT);
|
||||
|
||||
Reference in New Issue
Block a user