Add bmp-280 support (#1581)

This commit is contained in:
Ben Meadors
2022-07-31 08:52:47 -05:00
committed by GitHub
parent ade32b1827
commit 97684c6c73
9 changed files with 66 additions and 8 deletions

View File

@@ -0,0 +1,16 @@
#include "../mesh/generated/telemetry.pb.h"
#include "TelemetrySensor.h"
#include <Adafruit_BMP280.h>
class BMP280Sensor : virtual public TelemetrySensor {
private:
Adafruit_BMP280 bmp280;
protected:
virtual void setup() override;
public:
BMP280Sensor();
virtual int32_t runOnce() override;
virtual bool getMetrics(Telemetry *measurement) override;
};