ESPHome
2026.11.0-dev
Loading...
Searching...
No Matches
esphome
components
dfrobot_sen0609
select
dfrobot_sen0609_select.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/select/select.h
"
4
#include "
../dfrobot_sen0609.h
"
5
6
namespace
esphome::dfrobot_sen0609
{
7
8
class
OutPinLevelSelect
final :
public
select::Select
,
public
Parented
<DFRobotSEN0609Component> {
9
public
:
10
// User provided, not "= default": `new(p) OutPinLevelSelect()` would zero-fill .bss that is already zero.
11
OutPinLevelSelect
() {}
12
13
protected
:
14
void
control
(
size_t
index)
override
{ this->
parent_
->control_out_pin_level(index); }
15
};
16
17
}
// namespace esphome::dfrobot_sen0609
esphome::Parented
Helper class to easily give an object a parent of type T.
Definition
helpers.h:1997
esphome::Parented< DFRobotSEN0609Component >::parent_
DFRobotSEN0609Component * parent_
Definition
helpers.h:2008
esphome::dfrobot_sen0609::OutPinLevelSelect
Definition
dfrobot_sen0609_select.h:8
esphome::dfrobot_sen0609::OutPinLevelSelect::OutPinLevelSelect
OutPinLevelSelect()
Definition
dfrobot_sen0609_select.h:11
esphome::dfrobot_sen0609::OutPinLevelSelect::control
void control(size_t index) override
Definition
dfrobot_sen0609_select.h:14
esphome::select::Select
Base-class for all selects.
Definition
select.h:29
dfrobot_sen0609.h
esphome::dfrobot_sen0609
Definition
dfrobot_sen0609_button.h:6
select.h
Generated by
1.12.0