[chronojump/michrolab: 39/57] Initialization of the SD.
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/michrolab: 39/57] Initialization of the SD.
- Date: Tue, 24 May 2022 15:20:50 +0000 (UTC)
commit a13a4b9ecc5df9509a34c3a438a06c30a2c272f7
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]