mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-24 17:32:18 +00:00

* add Sensirion SHT4X sensors * Update platformio.ini Fix lib version * Delete src/mesh/generated/meshtastic/telemetry.pb.h * Revert "Delete src/mesh/generated/meshtastic/telemetry.pb.h" This reverts commit 8e5e6a9f6ff4e31ed32775741c03a855e663a5de. * remove modification on generated file * Update ScanI2CTwoWire.cpp Fix copy/paste issue --------- Co-authored-by: Thomas Göttgens <tgoettgens@gmail.com>
23 lines
477 B
C++
23 lines
477 B
C++
#include "configuration.h"
|
|
|
|
#if !MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR
|
|
|
|
#include "../mesh/generated/meshtastic/telemetry.pb.h"
|
|
#include "TelemetrySensor.h"
|
|
#include <SensirionI2cSht4x.h>
|
|
|
|
class SHT4XSensor : public TelemetrySensor
|
|
{
|
|
private:
|
|
SensirionI2cSht4x sht4x;
|
|
|
|
protected:
|
|
virtual void setup() override;
|
|
|
|
public:
|
|
SHT4XSensor();
|
|
virtual int32_t runOnce() override;
|
|
virtual bool getMetrics(meshtastic_Telemetry *measurement) override;
|
|
};
|
|
|
|
#endif |