.
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
namespace esphome {
|
namespace esphome {
|
||||||
namespace showcase_component {
|
namespace showcase_component {
|
||||||
|
|
||||||
static const char *TAG = "empty_i2c_component.component";
|
static const char *TAG = "showcase_component.component";
|
||||||
|
|
||||||
void ShowcaseComponent::setup() {
|
void ShowcaseComponent::setup() {
|
||||||
}
|
}
|
||||||
@@ -17,7 +17,7 @@ void ShowcaseComponent::loop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ShowcaseComponent::dump_config(){
|
void ShowcaseComponent::dump_config(){
|
||||||
ESP_LOGCONFIG(TAG, "Empty I2C component");
|
ESP_LOGCONFIG(TAG, "showcase component");
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace empty_i2c_component
|
} // namespace empty_i2c_component
|
||||||
|
|||||||
@@ -18,10 +18,10 @@ class ShowcaseComponent : public i2c::I2CDevice, public Component {
|
|||||||
void set_upper(output::FloatOutput *upper) {upper_ = upper;}
|
void set_upper(output::FloatOutput *upper) {upper_ = upper;}
|
||||||
void set_lower(output::FloatOutput *lower) {lower_ = lower;}
|
void set_lower(output::FloatOutput *lower) {lower_ = lower;}
|
||||||
|
|
||||||
void write_state(float upper, float lower){
|
/* void write_state(float upper, float lower){ */
|
||||||
this->upper_->set_level(upper);
|
/* this->upper_->set_level(upper); */
|
||||||
this->lower_->set_level(lower);
|
/* this->lower_->set_level(lower); */
|
||||||
}
|
/* } */
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
output::FloatOutput *upper_;
|
output::FloatOutput *upper_;
|
||||||
|
|||||||
Reference in New Issue
Block a user