|
ESPHome 2026.2.1
|
#include <gpio.h>
Public Member Functions | |
| virtual void | setup ()=0 |
| virtual void | pin_mode (gpio::Flags flags)=0 |
| virtual gpio::Flags | get_flags () const =0 |
| Retrieve GPIO pin flags. | |
| virtual bool | digital_read ()=0 |
| virtual void | digital_write (bool value)=0 |
| virtual size_t | dump_summary (char *buffer, size_t len) const |
| Write a summary of this pin to the provided buffer. | |
Data Fields | |
| virtual ESPDEPRECATED("Override dump_summary(char*, size_t) instead. Will be removed in 2026.7.0.", "2026.1.0") virtual std boo | is_internal )() |
| Get a summary of this pin as a string. | |
|
pure virtual |
Implemented in esphome::ch422g::CH422GGPIOPin, esphome::ch423::CH423GPIOPin, esphome::esp32::ESP32InternalGPIOPin, esphome::esp8266::ESP8266GPIOPin, esphome::host::HostGPIOPin, esphome::libretiny::ArduinoInternalGPIOPin, esphome::max6956::MAX6956GPIOPin, esphome::mcp23016::MCP23016GPIOPin, esphome::mcp23xxx_base::MCP23XXXGPIOPin< N >, esphome::mpr121::MPR121GPIOPin, esphome::pca6416a::PCA6416AGPIOPin, esphome::pca9554::PCA9554GPIOPin, esphome::pcf8574::PCF8574GPIOPin, esphome::pi4ioe5v6408::PI4IOE5V6408GPIOPin, esphome::rp2040::RP2040GPIOPin, esphome::sn74hc165::SN74HC165GPIOPin, esphome::sn74hc595::SN74HC595GPIOPin, esphome::spi::NullPin, esphome::sx1509::SX1509GPIOPin, esphome::tca9555::TCA9555GPIOPin, esphome::weikai::WeikaiGPIOPin, esphome::xl9535::XL9535GPIOPin, and esphome::zephyr::ZephyrGPIOPin.
|
pure virtual |
Implemented in esphome::ch422g::CH422GGPIOPin, esphome::ch423::CH423GPIOPin, esphome::esp32::ESP32InternalGPIOPin, esphome::esp8266::ESP8266GPIOPin, esphome::host::HostGPIOPin, esphome::libretiny::ArduinoInternalGPIOPin, esphome::max6956::MAX6956GPIOPin, esphome::mcp23016::MCP23016GPIOPin, esphome::mcp23xxx_base::MCP23XXXGPIOPin< N >, esphome::mpr121::MPR121GPIOPin, esphome::pca6416a::PCA6416AGPIOPin, esphome::pca9554::PCA9554GPIOPin, esphome::pcf8574::PCF8574GPIOPin, esphome::pi4ioe5v6408::PI4IOE5V6408GPIOPin, esphome::rp2040::RP2040GPIOPin, esphome::sn74hc165::SN74HC165GPIOPin, esphome::sn74hc595::SN74HC595GPIOPin, esphome::spi::NullPin, esphome::sx1509::SX1509GPIOPin, esphome::tca9555::TCA9555GPIOPin, esphome::weikai::WeikaiGPIOPin, esphome::xl9535::XL9535GPIOPin, and esphome::zephyr::ZephyrGPIOPin.
|
inlinevirtual |
Write a summary of this pin to the provided buffer.
| buffer | The buffer to write to |
| len | The size of the buffer (must be > 0) |
Reimplemented in esphome::ch422g::CH422GGPIOPin, esphome::ch423::CH423GPIOPin, esphome::esp32::ESP32InternalGPIOPin, esphome::esp8266::ESP8266GPIOPin, esphome::host::HostGPIOPin, esphome::libretiny::ArduinoInternalGPIOPin, esphome::max6956::MAX6956GPIOPin, esphome::mcp23016::MCP23016GPIOPin, esphome::mcp23xxx_base::MCP23XXXGPIOPin< N >, esphome::mpr121::MPR121GPIOPin, esphome::pca6416a::PCA6416AGPIOPin, esphome::pca9554::PCA9554GPIOPin, esphome::pcf8574::PCF8574GPIOPin, esphome::pi4ioe5v6408::PI4IOE5V6408GPIOPin, esphome::rp2040::RP2040GPIOPin, esphome::sn74hc165::SN74HC165GPIOPin, esphome::sn74hc595::SN74HC595GPIOPin, esphome::spi::NullPin, esphome::sx1509::SX1509GPIOPin, esphome::tca9555::TCA9555GPIOPin, esphome::weikai::WeikaiGPIOPin, esphome::xl9535::XL9535GPIOPin, and esphome::zephyr::ZephyrGPIOPin.
|
pure virtual |
Retrieve GPIO pin flags.
Implemented in esphome::ch422g::CH422GGPIOPin, esphome::ch423::CH423GPIOPin, esphome::esp32::ESP32InternalGPIOPin, esphome::esp8266::ESP8266GPIOPin, esphome::host::HostGPIOPin, esphome::libretiny::ArduinoInternalGPIOPin, esphome::max6956::MAX6956GPIOPin, esphome::mcp23016::MCP23016GPIOPin, esphome::mcp23xxx_base::MCP23XXXGPIOPin< N >, esphome::mpr121::MPR121GPIOPin, esphome::pca6416a::PCA6416AGPIOPin, esphome::pca9554::PCA9554GPIOPin, esphome::pcf8574::PCF8574GPIOPin, esphome::pi4ioe5v6408::PI4IOE5V6408GPIOPin, esphome::rp2040::RP2040GPIOPin, esphome::sn74hc165::SN74HC165GPIOPin, esphome::sn74hc595::SN74HC595GPIOPin, esphome::spi::NullPin, esphome::sx1509::SX1509GPIOPin, esphome::tca9555::TCA9555GPIOPin, esphome::weikai::WeikaiGPIOPin, esphome::xl9535::XL9535GPIOPin, and esphome::zephyr::ZephyrGPIOPin.
|
pure virtual |
Implemented in esphome::ch422g::CH422GGPIOPin, esphome::ch423::CH423GPIOPin, esphome::esp32::ESP32InternalGPIOPin, esphome::esp8266::ESP8266GPIOPin, esphome::host::HostGPIOPin, esphome::libretiny::ArduinoInternalGPIOPin, esphome::max6956::MAX6956GPIOPin, esphome::mcp23016::MCP23016GPIOPin, esphome::mcp23xxx_base::MCP23XXXGPIOPin< N >, esphome::mpr121::MPR121GPIOPin, esphome::pca6416a::PCA6416AGPIOPin, esphome::pca9554::PCA9554GPIOPin, esphome::pcf8574::PCF8574GPIOPin, esphome::pi4ioe5v6408::PI4IOE5V6408GPIOPin, esphome::rp2040::RP2040GPIOPin, esphome::sn74hc165::SN74HC165GPIOPin, esphome::sn74hc595::SN74HC595GPIOPin, esphome::spi::NullPin, esphome::sx1509::SX1509GPIOPin, esphome::tca9555::TCA9555GPIOPin, esphome::weikai::WeikaiGPIOPin, esphome::xl9535::XL9535GPIOPin, and esphome::zephyr::ZephyrGPIOPin.
|
pure virtual |
Implemented in esphome::ch422g::CH422GGPIOPin, esphome::ch423::CH423GPIOPin, esphome::esp32::ESP32InternalGPIOPin, esphome::esp8266::ESP8266GPIOPin, esphome::host::HostGPIOPin, esphome::libretiny::ArduinoInternalGPIOPin, esphome::max6956::MAX6956GPIOPin, esphome::mcp23016::MCP23016GPIOPin, esphome::mcp23xxx_base::MCP23XXXGPIOPin< N >, esphome::mpr121::MPR121GPIOPin, esphome::pca6416a::PCA6416AGPIOPin, esphome::pca9554::PCA9554GPIOPin, esphome::pcf8574::PCF8574GPIOPin, esphome::pi4ioe5v6408::PI4IOE5V6408GPIOPin, esphome::rp2040::RP2040GPIOPin, esphome::sn74hc165::SN74HC165GPIOPin, esphome::sn74hc595::SN74HC595GPIOPin, esphome::spi::NullPin, esphome::sx1509::SX1509GPIOPin, esphome::tca9555::TCA9555GPIOPin, esphome::weikai::WeikaiGPIOPin, esphome::xl9535::XL9535GPIOPin, and esphome::zephyr::ZephyrGPIOPin.
|
inline |