1
0
mirror of https://github.com/esphome/esphome.git synced 2025-02-24 13:58:14 +00:00
2019-05-10 21:44:02 +02:00

24 lines
544 B
C++

#include "ttp229_bsf.h"
#include "esphome/core/log.h"
namespace esphome {
namespace ttp229_bsf {
static const char *TAG = "ttp229_bsf";
void TTP229BSFComponent::setup() {
ESP_LOGCONFIG(TAG, "Setting up ttp229_bsf... ");
this->sdo_pin_->setup();
this->scl_pin_->setup();
this->scl_pin_->digital_write(true);
delay(2);
}
void TTP229BSFComponent::dump_config() {
ESP_LOGCONFIG(TAG, "ttp229:");
LOG_PIN(" SCL pin: ", this->scl_pin_);
LOG_PIN(" SDO pin: ", this->sdo_pin_);
}
} // namespace ttp229_bsf
} // namespace esphome