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.
29 lines
525 B
29 lines
525 B
#include "esphome/core/log.h"
|
|
#include "empty_i2c_sensor.h"
|
|
#include "esphome/core/log.h"
|
|
|
|
static const char* const TAG = "i2c sensor";
|
|
|
|
namespace esphome {
|
|
namespace empty_i2c_sensor {
|
|
|
|
static const char *TAG = "empty_i2c_sensor.sensor";
|
|
|
|
void EmptyI2CSensor::setup(){
|
|
|
|
}
|
|
|
|
void EmptyI2CSensor::update(){
|
|
uint8_t* data = 10;
|
|
this->read_register(0x0, &data, (size_t)0x1);
|
|
ESP_LOGI(TAG, "sensor output: %d", data[0]);
|
|
|
|
}
|
|
|
|
void EmptyI2CSensor::dump_config(){
|
|
|
|
}
|
|
|
|
} // namespace EmptyI2CSensor
|
|
} // namespace esphome
|