ESPHome  2024.10.2
mcp23008.h
Go to the documentation of this file.
1 #pragma once
2 
5 #include "esphome/core/hal.h"
7 
8 namespace esphome {
9 namespace mcp23008 {
10 
12  public:
13  MCP23008() = 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 mcp23008
24 } // namespace esphome
void dump_config() override
Definition: mcp23008.cpp:26
I2CRegister reg(uint8_t a_register)
calls the I2CRegister constructor
Definition: i2c.h:149
bool read_reg(uint8_t reg, uint8_t *value) override
Definition: mcp23008.cpp:28
bool write_reg(uint8_t reg, uint8_t value) override
Definition: mcp23008.cpp:35
void setup() override
Definition: mcp23008.cpp:9
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
This Class provides the methods to read/write bytes from/to an i2c device.
Definition: i2c.h:133