ESPHome  2024.10.2
fs3000.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace fs3000 {
9 
10 // FS3000 has two models, 1005 and 1015
11 // 1005 has a max speed detection of 7.23 m/s
12 // 1015 has a max speed detection of 15 m/s
14 
16  public:
17  void setup() override;
18  void update() override;
19 
20  void dump_config() override;
21  float get_setup_priority() const override { return setup_priority::DATA; }
22 
23  void set_model(FS3000Model model) { this->model_ = model; }
24 
25  protected:
27 
28  uint16_t raw_data_points_[13];
29  float mps_data_points_[13];
30 
31  float fit_raw_(uint16_t raw_value);
32 };
33 
34 } // namespace fs3000
35 } // namespace esphome
const float DATA
For components that import data from directly connected sensors like DHT.
Definition: component.cpp:19
uint16_t raw_data_points_[13]
Definition: fs3000.h:28
float fit_raw_(uint16_t raw_value)
Definition: fs3000.cpp:76
This class simplifies creating components that periodically check a state.
Definition: component.h:283
float get_setup_priority() const override
Definition: fs3000.h:21
void dump_config() override
Definition: fs3000.cpp:69
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
Base-class for all sensors.
Definition: sensor.h:57
void set_model(FS3000Model model)
Definition: fs3000.h:23
This Class provides the methods to read/write bytes from/to an i2c device.
Definition: i2c.h:133