ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
tmc2209_sensor.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome::tmc2209 {
8
10 public:
11 explicit TMC2209Sensor(TMC2209Stepper *parent) : parent_(parent) {}
12
13 void update() override;
14 void dump_config() override;
15
16 SUB_SENSOR(actual_current)
17 SUB_SENSOR(stallguard_result)
18 SUB_SENSOR(motor_load)
19 SUB_SENSOR(pwm_scale_sum)
20 SUB_SENSOR(pwm_scale_auto)
21 SUB_SENSOR(pwm_ofs_auto)
22 SUB_SENSOR(pwm_grad_auto)
23
24 protected:
25 TMC2209Stepper *parent_;
26};
27
28} // namespace esphome::tmc2209
This class simplifies creating components that periodically check a state.
Definition component.h:532
TMC2209Sensor(TMC2209Stepper *parent)