mirror of
https://github.com/esphome/esphome.git
synced 2025-01-15 17:05:59 +01:00
Delete sts3x.h
This commit is contained in:
parent
975be98e08
commit
4a8dbcff72
1 changed files with 0 additions and 28 deletions
|
@ -1,28 +0,0 @@
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include "esphome/core/component.h"
|
|
||||||
#include "esphome/components/sensor/sensor.h"
|
|
||||||
#include "esphome/components/i2c/i2c.h"
|
|
||||||
|
|
||||||
namespace esphome {
|
|
||||||
namespace sts3x {
|
|
||||||
|
|
||||||
/// This class implements support for the ST3x-DIS family of temperature i2c sensors.
|
|
||||||
class STS3XComponent : public PollingComponent, public i2c::I2CDevice {
|
|
||||||
public:
|
|
||||||
void set_temperature_sensor(sensor::Sensor *temperature_sensor) { temperature_sensor_ = temperature_sensor; }
|
|
||||||
|
|
||||||
void setup() override;
|
|
||||||
void dump_config() override;
|
|
||||||
float get_setup_priority() const override;
|
|
||||||
void update() override;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
bool write_command_(uint16_t command);
|
|
||||||
bool read_data_(uint16_t *data, uint8_t len);
|
|
||||||
|
|
||||||
sensor::Sensor *temperature_sensor_;
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace sts3x
|
|
||||||
} // namespace esphome
|
|
Loading…
Reference in a new issue