ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
mt6701_sensor.h
Go to the documentation of this file.
1#pragma once
2
7
8namespace esphome::mt6701 {
9
11class MT6701Sensor final : public PollingComponent, public Parented<MT6701Component>, public sensor::Sensor {
12 SUB_SENSOR(raw_count)
13
14 public:
15 void update() override;
16 void dump_config() override;
17};
18
19} // namespace esphome::mt6701
Helper class to easily give an object a parent of type T.
Definition helpers.h:2073
This class simplifies creating components that periodically check a state.
Definition component.h:519
virtual void update()=0
The shaft angle in degrees, with the raw count as an optional sub-sensor.
Base-class for all sensors.
Definition sensor.h:47