ESPHome 2025.5.0
Loading...
Searching...
No Matches
mcp23008.h
Go to the documentation of this file.
1#pragma once
2
5#include "esphome/core/hal.h"
7
8namespace esphome {
9namespace 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
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:133
I2CRegister reg(uint8_t a_register)
calls the I2CRegister constructor
Definition i2c.h:153
bool write_reg(uint8_t reg, uint8_t value) override
Definition mcp23008.cpp:35
void dump_config() override
Definition mcp23008.cpp:26
bool read_reg(uint8_t reg, uint8_t *value) override
Definition mcp23008.cpp:28
void setup() override
Definition mcp23008.cpp:9
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7