aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2022-04-01 12:00:37 +0100
committerdakkar <dakkar@thenautilus.net>2022-04-01 12:00:37 +0100
commite660f39c366aefd88173b183be45042ed34a2e1f (patch)
treeff0152884a30ad00da2a76aa314b94832460da63
parentdifferent sd card library actually works (diff)
downloadenv-sensor-e660f39c366aefd88173b183be45042ed34a2e1f.tar.gz
env-sensor-e660f39c366aefd88173b183be45042ed34a2e1f.tar.bz2
env-sensor-e660f39c366aefd88173b183be45042ed34a2e1f.zip
comment
-rw-r--r--datalog.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/datalog.h b/datalog.h
index da715e8..57a6b9f 100644
--- a/datalog.h
+++ b/datalog.h
@@ -9,6 +9,11 @@ const int mySD_SCLK=14;
const int mySD_MISO=2;
const int mySD_MOSI=15;
+/*
+ we write fixed-length CSV lines because, at some point in the
+ future, I may need to seek "10 measurements back" or something like
+ that; also, it's easier to read
+ */
// 12345, 12345, 12345, 12345, 123456, 123456, 123456, 123456, 12345\n
const char csvHeader[]=" secs, co2, temp, humid, pm1, pm2.5, pm4, pm10, batt\n";
const char csvFormat[]="% 5lu, % 5u, % 5.1f, % 5.1f, % 6.1f, % 6.1f, % 6.1f, % 6.1f, % 5.2f\n";