diff options
author | dakkar <dakkar@thenautilus.net> | 2022-04-01 12:00:37 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2022-04-01 12:00:37 +0100 |
commit | e660f39c366aefd88173b183be45042ed34a2e1f (patch) | |
tree | ff0152884a30ad00da2a76aa314b94832460da63 /datalog.h | |
parent | different sd card library actually works (diff) | |
download | env-sensor-e660f39c366aefd88173b183be45042ed34a2e1f.tar.gz env-sensor-e660f39c366aefd88173b183be45042ed34a2e1f.tar.bz2 env-sensor-e660f39c366aefd88173b183be45042ed34a2e1f.zip |
comment
Diffstat (limited to 'datalog.h')
-rw-r--r-- | datalog.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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"; |