7static const char *
const TAG =
"ttp229_lsf";
10 ESP_LOGCONFIG(TAG,
"Setting up ttp229...");
19 ESP_LOGCONFIG(TAG,
"ttp229:");
21 switch (this->error_code_) {
23 ESP_LOGE(TAG,
"Communication with TTP229 failed!");
40 channel->process(touched);
virtual void mark_failed()
Mark this component as failed.
void status_set_warning(const char *message="unspecified")
void status_clear_warning()
ErrorCode read(uint8_t *data, size_t len)
reads an array of bytes from the device using an I2CBus
enum esphome::ttp229_lsf::TTP229LSFComponent::ErrorCode NONE
std::vector< TTP229Channel * > channels_
void dump_config() override
uint16_t i2ctohs(uint16_t i2cshort)
@ ERROR_OK
No error found during execution of method.
Providing packet encoding functions for exchanging data with a remote host.
uint8_t reverse_bits(uint8_t x)
Reverse the order of 8 bits.