ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
mt6701_spi_binary_sensors.h
Go to the documentation of this file.
1#pragma once
2
7
8namespace esphome::mt6701_spi {
9
10// Reads the encoder at its own interval and publishes the status flags of each frame
11class MT6701SPIBinarySensors : public Component, public Parented<MT6701SPIComponent> {
12 SUB_BINARY_SENSOR(push_button)
13 SUB_BINARY_SENSOR(track_loss)
14
15 public:
16 void set_update_interval(uint32_t update_interval) { this->update_interval_ = update_interval; }
17 void loop() override;
18 void dump_config() override;
19
20 protected:
23};
24
25} // namespace esphome::mt6701_spi
Helper class to easily give an object a parent of type T.
Definition helpers.h:2073
static void uint32_t