26 lines
534 B
C++
26 lines
534 B
C++
#include "esphome/core/log.h"
|
|
#include "empty_i2c_component.h"
|
|
#include <Arduino.h>
|
|
|
|
namespace esphome {
|
|
namespace empty_i2c_component {
|
|
|
|
static const char *TAG = "empty_i2c_component.component";
|
|
|
|
void EmptyI2CComponent::setup() {
|
|
}
|
|
|
|
void EmptyI2CComponent::loop() {
|
|
uint8_t data = 9;
|
|
this->write_register(0x0, &data, 0x1);
|
|
/* ESP_LOGI(TAG, "READ value: %d", data); */
|
|
}
|
|
|
|
void EmptyI2CComponent::dump_config(){
|
|
ESP_LOGCONFIG(TAG, "Empty I2C component");
|
|
}
|
|
|
|
|
|
} // namespace empty_i2c_component
|
|
} // namespace esphome
|