ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
adc128s102_sensor.h
Go to the documentation of this file.
1#pragma once
2
6#include "esphome/core/hal.h"
7
8#include "../adc128s102.h"
9
10namespace esphome::adc128s102 {
11
13 public Parented<ADC128S102>,
14 public sensor::Sensor,
16 public:
17 ADC128S102Sensor(uint8_t channel);
18
19 void update() override;
20 void dump_config() override;
21 float sample() override;
22
23 protected:
24 uint8_t channel_;
25};
26} // namespace esphome::adc128s102
Helper class to easily give an object a parent of type T.
Definition helpers.h:1861
This class simplifies creating components that periodically check a state.
Definition component.h:585
Base-class for all sensors.
Definition sensor.h:47
Abstract interface for components to request voltage (usually ADC readings)