-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLaunch_Day_Tester.ino
48 lines (40 loc) · 1.23 KB
/
Launch_Day_Tester.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include <SPI.h> // Built in
#include <SD.h> // Built in
#include <Wire.h> // Built in
#include <HX711.h> // HX711 0.7.5 by Bogdan Necula
#include <RTClib.h> // RTClib 2.0.2 by Adafruit.
// NOTE: Dependent on Adafruit BusIO 1.11.1 by Adafruit.
#include <Adafruit_BMP280.h> // BMP280 2.6.1 by Adafruit.
// NOTE: Dependent on Adafruit Unified Sensor 1.1.4 by Adafruit.
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BNO055.h>
#include <utility/imumaths.h>
void setup(void)
{
Serial.begin(115200);
if (!SD.begin(10)) {
Serial.println("Card failed, or not present");
}
File dataFile = SD.open("datalog.txt", FILE_WRITE);
if (SD.exists("datalog.txt")) {
Serial.println("Writing to the file!");
dataFile.print("Hi ");
}
else {
Serial.println("No, it didn't work");
}
dataFile.close();
}
void loop(void)
{
File dataFile = SD.open("datalog.txt", FILE_WRITE);
if (SD.exists("datalog.txt")) {
Serial.println("Writing to the file!");
dataFile.print("Hi ");
}
else {
Serial.println("No, it didn't work");
}
dataFile.close();
}