ESPHome  2022.9.2
mcp23017.h
Go to the documentation of this file.
1 #pragma once
2 
5 #include "esphome/core/hal.h"
7 
8 namespace esphome {
9 namespace mcp23017 {
10 
12  public:
13  MCP23017() = default;
14 
15  void setup() override;
16  void dump_config() override;
17 
18  protected:
19  bool read_reg(uint8_t reg, uint8_t *value) override;
20  bool write_reg(uint8_t reg, uint8_t value) override;
21 };
22 
23 } // namespace mcp23017
24 } // namespace esphome
bool write_reg(uint8_t reg, uint8_t value) override
Definition: mcp23017.cpp:36
I2CRegister reg(uint8_t a_register)
Definition: i2c.h:46
void setup() override
Definition: mcp23017.cpp:9
bool read_reg(uint8_t reg, uint8_t *value) override
Definition: mcp23017.cpp:30
Definition: a4988.cpp:4
void dump_config() override
Definition: mcp23017.cpp:28