You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
556 B

#include "esphome/core/log.h"
#include "empty_i2c_component.h"
namespace esphome {
namespace empty_i2c_component {
static const char *TAG = "empty_i2c_component.component";
void EmptyI2CComponent::setup() {
this->write_register(0x0, 0x1, 0x1);
}
void EmptyI2CComponent::loop() {
this->write_register(0x0, 0x1, 0x1);
delay(1000);
this->write_register(0x0, 0x0, 0x1);
delay(1000);
}
void EmptyI2CComponent::dump_config(){
ESP_LOGCONFIG(TAG, "Empty I2C component");
}
} // namespace empty_i2c_component
} // namespace esphome