mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-06 18:08:00 +00:00
* added AHTx0 sensor * AHT10 definition in protobuf * AHT10 definition in protobuf * protobufs * Management of AHT20+BMP280 module * missing newline in log * missing newline in log * reverted * reverted .gitignore --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
18 lines
390 B
C++
18 lines
390 B
C++
#include "../mesh/generated/meshtastic/telemetry.pb.h"
|
|
#include "TelemetrySensor.h"
|
|
#include <Adafruit_AHTX0.h>
|
|
|
|
class AHT10Sensor : public TelemetrySensor
|
|
{
|
|
private:
|
|
Adafruit_AHTX0 aht10;
|
|
|
|
protected:
|
|
virtual void setup() override;
|
|
|
|
public:
|
|
AHT10Sensor();
|
|
virtual int32_t runOnce() override;
|
|
virtual bool getMetrics(meshtastic_Telemetry *measurement) override;
|
|
};
|