7 static const char *
const TAG =
"mcp23s17";
10 if (device_addr != 0) {
16 ESP_LOGCONFIG(TAG,
"Setting up MCP23S17...");
20 uint8_t
cmd = 0b01000000;
45 ESP_LOGCONFIG(TAG,
"MCP23S17:");
46 LOG_PIN(
" CS Pin: ", this->
cs_);
void spi_setup() override
uint8_t transfer_byte(uint8_t data)
void set_device_address(uint8_t device_addr)
void dump_config() override
Implementation of SPI Controller mode.
bool write_reg(uint8_t reg, uint8_t value) override
bool read_reg(uint8_t reg, uint8_t *value) override