[chronojump/FS-TFT-Menu] Initialization of the SD.



commit ec9f934bd13f9e67ae597fc0a114dff1b3b5ad61
Author: xpadulles <x padulles gmail com>
Date:   Tue May 17 16:36:31 2022 +0200

    Initialization of the SD.

 arduino/ForceSensorTFT/ForceSensorTFT.ino | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/arduino/ForceSensorTFT/ForceSensorTFT.ino b/arduino/ForceSensorTFT/ForceSensorTFT.ino
index 58d6401ab..d81813cf0 100644
--- a/arduino/ForceSensorTFT/ForceSensorTFT.ino
+++ b/arduino/ForceSensorTFT/ForceSensorTFT.ino
@@ -286,17 +286,17 @@ void setup() {
   tft.setRotation(1);
   
   // See if the card is present and can be initialized:
-//  if (!SD.begin(chipSelect)) 
-//  {
-//    Serial.println("Card failed, or not present");
-//    tft.println("Card failed, or not present");
-//    // don't do anything more:
-//    return;
-//  }
-//  tft.setCursor(110, 120);
-//  tft.println("Card initialized");
-//  Serial.println("card initialized");
-//  delay(1000);
+  if (!SD.begin(chipSelect)) 
+  {
+    Serial.println("Card failed, or not present");
+    tft.println("Card failed, or not present");
+    // don't do anything more:
+    return;
+  }
+  tft.setCursor(110, 120);
+  tft.println("Card initialized");
+  Serial.println("card initialized");
+  delay(1000);
   
   tft.fillScreen(BLACK);
   drawMenuBackground();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]