mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-30 06:31:01 +00:00
* Update AHT10.h Add clarifying note about AHT20 also being included * Update AHT10.cpp Add clarifying note about AHT20 also being included
28 lines
598 B
C++
28 lines
598 B
C++
/*
|
|
* Worth noting that both the AHT10 and AHT20 are supported without alteration.
|
|
*/
|
|
|
|
#include "configuration.h"
|
|
|
|
#if !MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR && __has_include(<Adafruit_AHTX0.h>)
|
|
|
|
#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;
|
|
};
|
|
|
|
#endif
|