ESPHome 2026.2.1
Loading...
Searching...
No Matches
esphome::GPIOPin Class Referenceabstract

#include <gpio.h>

Inheritance diagram for esphome::GPIOPin:
esphome::InternalGPIOPin esphome::ch422g::CH422GGPIOPin esphome::ch423::CH423GPIOPin 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::sn74hc165::SN74HC165GPIOPin esphome::sn74hc595::SN74HC595GPIOPin esphome::spi::NullPin esphome::sx1509::SX1509GPIOPin esphome::tca9555::TCA9555GPIOPin esphome::weikai::WeikaiGPIOPin esphome::xl9535::XL9535GPIOPin

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.
 

Detailed Description

Definition at line 59 of file gpio.h.

Member Function Documentation

◆ digital_read()

◆ digital_write()

◆ dump_summary()

◆ get_flags()

◆ pin_mode()

◆ setup()

Field Documentation

◆ is_internal

virtual ESPDEPRECATED("Override dump_summary(char*, size_t) instead. Will be removed in 2026.7.0.", "2026.1.0") virtual std boo esphome::GPIOPin::is_internal) ()
inline

Get a summary of this pin as a string.

Definition at line 88 of file gpio.h.


The documentation for this class was generated from the following file: