ESPHome
2023.8.3
esphome
esphome
components
ttp229_bsf
ttp229_bsf.cpp
Go to the documentation of this file.
1
#include "
ttp229_bsf.h
"
2
#include "
esphome/core/log.h
"
3
4
namespace
esphome
{
5
namespace
ttp229_bsf {
6
7
static
const
char
*
const
TAG =
"ttp229_bsf"
;
8
9
void
TTP229BSFComponent::setup
() {
10
ESP_LOGCONFIG(TAG,
"Setting up ttp229_bsf... "
);
11
this->
sdo_pin_
->
setup
();
12
this->
scl_pin_
->
setup
();
13
this->
scl_pin_
->
digital_write
(
true
);
14
delay
(2);
15
}
16
void
TTP229BSFComponent::dump_config
() {
17
ESP_LOGCONFIG(TAG,
"ttp229:"
);
18
LOG_PIN(
" SCL pin: "
, this->
scl_pin_
);
19
LOG_PIN(
" SDO pin: "
, this->
sdo_pin_
);
20
}
21
22
}
// namespace ttp229_bsf
23
}
// namespace esphome
esphome::GPIOPin::digital_write
virtual void digital_write(bool value)=0
esphome::ttp229_bsf::TTP229BSFComponent::scl_pin_
GPIOPin * scl_pin_
Definition:
ttp229_bsf.h:51
esphome::GPIOPin::setup
virtual void setup()=0
esphome::ttp229_bsf::TTP229BSFComponent::dump_config
void dump_config() override
Definition:
ttp229_bsf.cpp:16
ttp229_bsf.h
esphome::ttp229_bsf::TTP229BSFComponent::sdo_pin_
GPIOPin * sdo_pin_
Definition:
ttp229_bsf.h:50
esphome::ttp229_bsf::TTP229BSFComponent::setup
void setup() override
Definition:
ttp229_bsf.cpp:9
esphome
Definition:
a01nyub.cpp:7
log.h
esphome::delay
void IRAM_ATTR HOT delay(uint32_t ms)
Definition:
core.cpp:28
Generated by
1.8.13