Adapt pins to the new board

This commit is contained in:
Klemens Schölhorn 2018-06-08 23:13:42 +02:00
parent 6cbd3ae867
commit 2a785dd71d

View File

@ -7,10 +7,10 @@
using MainButton = Button<150, 150>; using MainButton = Button<150, 150>;
#define SD_ChipSelectPin 5 #define SD_ChipSelectPin A0
#define MainButtonPin 6 #define MainButtonPin A3
#define CoffeeLedPin 7 #define CoffeeLedPin A2
#define EegLedPin 8 #define EegLedPin A1
Debounce<20> debounce; Debounce<20> debounce;
MainButton button; MainButton button;
@ -27,7 +27,6 @@ void setup(){
if (!SD.begin(SD_ChipSelectPin)) { // see if the card is present and can be initialized: if (!SD.begin(SD_ChipSelectPin)) { // see if the card is present and can be initialized:
Serial.println("SD fail"); Serial.println("SD fail");
return; // don't do anything more if not
} else{ } else{
Serial.println("SD ok"); Serial.println("SD ok");
} }