ESPHome  2022.9.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)
Definition: i2c.h:46
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
Definition: a4988.cpp:4