ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
as5600_sensor.h
Go to the documentation of this file.
1#pragma once
2
4#include "esphome/core/hal.h"
9
10namespace esphome::as5600 {
11
12class AS5600Sensor final : public PollingComponent, public Parented<AS5600Component>, public sensor::Sensor {
13 SUB_SENSOR(raw_position)
14 SUB_SENSOR(gain)
15 SUB_SENSOR(magnitude)
16 SUB_SENSOR(status)
17
18 public:
19 void update() override;
20 void dump_config() override;
21
22 void set_out_of_range_mode(OutRangeMode oor_mode) { this->out_of_range_mode_ = oor_mode; }
23 OutRangeMode get_out_of_range_mode() { return this->out_of_range_mode_; }
24
25 protected:
27};
28
29} // namespace esphome::as5600
uint8_t status
Definition bl0942.h:8
Helper class to easily give an object a parent of type T.
Definition helpers.h:2160
This class simplifies creating components that periodically check a state.
Definition component.h:532
virtual void update()=0
Base-class for all sensors.
Definition sensor.h:48
AlsGain501 gain
@ OUT_RANGE_MODE_MIN_MAX
Definition as5600.h:32