.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#include "esphome/core/component.h"
|
#include "esphome/core/component.h"
|
||||||
#include "esphome/components/i2c/i2c.h"
|
#include "esphome/components/i2c/i2c.h"
|
||||||
/* #include "esphome/components/output/float_output.h" */
|
#include "esphome/components/output/float_output.h"
|
||||||
// TODO: maybe use monochrome leds instead of floatoutput directly?:
|
// TODO: maybe use monochrome leds instead of floatoutput directly?:
|
||||||
/* #include "esphome/components/monochromatic/monochromatic_light_output.h" */
|
/* #include "esphome/components/monochromatic/monochromatic_light_output.h" */
|
||||||
|
|
||||||
@@ -19,8 +19,8 @@ class ShowcaseComponent : public i2c::I2CDevice, public Component {
|
|||||||
void loop() override;
|
void loop() override;
|
||||||
void dump_config() override;
|
void dump_config() override;
|
||||||
|
|
||||||
void set_upper(output::FloatOutput *upper) {upper_ = upper;}
|
void set_upper(output::FloatOutput *upper) {this->upper_ = upper;}
|
||||||
void set_lower(output::FloatOutput *lower) {lower_ = lower;}
|
void set_lower(output::FloatOutput *lower) {this->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);
|
||||||
|
|||||||
Reference in New Issue
Block a user