|
|
|
@ -2,12 +2,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
#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" */
|
|
|
|
|
|
|
|
|
|
|
|
namespace esphome {
|
|
|
|
namespace esphome {
|
|
|
|
namespace showcase_component {
|
|
|
|
namespace showcase_component {
|
|
|
|
|
|
|
|
|
|
|
|
enum state{ Off, Auto, On };
|
|
|
|
/* enum state{ Off, Auto, On }; */
|
|
|
|
|
|
|
|
|
|
|
|
class ShowcaseComponent : public i2c::I2CDevice, public Component {
|
|
|
|
class ShowcaseComponent : public i2c::I2CDevice, public Component {
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
|