aboutsummaryrefslogtreecommitdiff
path: root/datalog.h
diff options
context:
space:
mode:
Diffstat (limited to 'datalog.h')
-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";