ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
adc128s102.h
Go to the documentation of this file.
1#pragma once
2
4#include "esphome/core/hal.h"
6
7namespace esphome::adc128s102 {
8
9class ADC128S102 : public Component,
10 public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW, spi::CLOCK_PHASE_LEADING,
11 spi::DATA_RATE_10MHZ> {
12 public:
13 ADC128S102() = default;
14
15 void setup() override;
16 void dump_config() override;
17 float get_setup_priority() const override;
18 uint16_t read_data(uint8_t channel);
19};
20
21} // namespace esphome::adc128s102
float get_setup_priority() const override
Definition adc128s102.cpp:8
uint16_t read_data(uint8_t channel)
The SPIDevice is what components using the SPI will create.
Definition spi.h:429