12 static const uint16_t POSITION_COUNT = 4096;
13 static const float RAW_TO_DEGREES = 360.0 / POSITION_COUNT;
14 static const float DEGREES_TO_RAW = POSITION_COUNT / 360.0;
50 void setup()
override;
81 bool in_range(uint16_t raw_position);
void set_direction(uint8_t direction)
InternalGPIOPin * dir_pin_
EndPositionMode end_mode_
const float DATA
For components that import data from directly connected sensors like DHT.
void set_dir_pin(InternalGPIOPin *pin)
void set_hysteresis(uint8_t hysteresis)
void set_fast_filter(uint8_t fast_filter)
void dump_config() override
AS5600MagnetStatus read_magnet_status()
void set_start_position(uint16_t start_position)
void setup() override
Set up the internal sensor array.
float get_setup_priority() const override
HARDWARE_LATE setup priority.
void set_watchdog(bool watchdog)
void set_end_position(uint16_t end_position)
void set_slow_filter(uint8_t slow_filter)
optional< uint16_t > read_position()
optional< uint16_t > read_raw_position()
void set_range(uint16_t range)
bool in_range(uint16_t raw_position)
void set_power_mode(uint8_t power_mode)
Implementation of SPI Controller mode.
This Class provides the methods to read/write bytes from/to an i2c device.