mirror of
https://github.com/esphome/esphome.git
synced 2024-12-02 11:44:13 +01:00
17 lines
404 B
C++
17 lines
404 B
C++
#pragma once
|
|
|
|
#include "esphome/components/i2c/i2c.h"
|
|
#include "esphome/components/output/float_output.h"
|
|
#include "esphome/core/component.h"
|
|
|
|
namespace esphome {
|
|
namespace mcp47a1 {
|
|
|
|
class MCP47A1 : public Component, public output::FloatOutput, public i2c::I2CDevice {
|
|
public:
|
|
void dump_config() override;
|
|
void write_state(float state) override;
|
|
};
|
|
|
|
} // namespace mcp47a1
|
|
} // namespace esphome
|