ESPHome  2024.11.0
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)
calls the I2CRegister constructor
Definition: i2c.h:149
void setup() override
Definition: mcp23017.cpp:9
bool read_reg(uint8_t reg, uint8_t *value) override
Definition: mcp23017.cpp:30
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
void dump_config() override
Definition: mcp23017.cpp:28
This Class provides the methods to read/write bytes from/to an i2c device.
Definition: i2c.h:133