18 lines
377 B
C
18 lines
377 B
C
#pragma once
|
|
#include <Arduino.h>
|
|
|
|
struct Sample {
|
|
uint32_t epoch;
|
|
float mslHpa;
|
|
float tempC;
|
|
};
|
|
|
|
void historyBegin();
|
|
void historyAdd(uint32_t epoch, float mslHpa, float tempC);
|
|
int historyCount();
|
|
Sample historyGet(int i); // 0 = oldest
|
|
Sample historyLatest();
|
|
bool historyTrendDelta(float& outDeltaHpa);
|
|
bool historySave();
|
|
bool historyLoad();
|