ESPHome 2026.2.3
Loading...
Searching...
No Matches
esphome::pcf8574::PCF8574GPIOPin Class Reference

Helper class to expose a PCF8574 pin as an internal input GPIO pin. More...

#include <pcf8574.h>

Inheritance diagram for esphome::pcf8574::PCF8574GPIOPin:
esphome::GPIOPin

Public Member Functions

void setup () override
 
void pin_mode (gpio::Flags flags) override
 
bool digital_read () override
 
void digital_write (bool value) override
 
size_t dump_summary (char *buffer, size_t len) const override
 
void set_parent (PCF8574Component *parent)
 
void set_pin (uint8_t pin)
 
void set_inverted (bool inverted)
 
void set_flags (gpio::Flags flags)
 
gpio::Flags get_flags () const override
 
- Public Member Functions inherited from esphome::GPIOPin

Protected Attributes

PCF8574Componentparent_
 
uint8_t pin_
 
bool inverted_
 
gpio::Flags flags_
 

Additional Inherited Members

- Data Fields inherited from esphome::GPIOPin
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

Helper class to expose a PCF8574 pin as an internal input GPIO pin.

Definition at line 51 of file pcf8574.h.

Member Function Documentation

◆ digital_read()

bool esphome::pcf8574::PCF8574GPIOPin::digital_read ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 107 of file pcf8574.cpp.

◆ digital_write()

void esphome::pcf8574::PCF8574GPIOPin::digital_write ( bool value)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 108 of file pcf8574.cpp.

◆ dump_summary()

size_t esphome::pcf8574::PCF8574GPIOPin::dump_summary ( char * buffer,
size_t len ) const
overridevirtual

Reimplemented from esphome::GPIOPin.

Definition at line 109 of file pcf8574.cpp.

◆ get_flags()

gpio::Flags esphome::pcf8574::PCF8574GPIOPin::get_flags ( ) const
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 64 of file pcf8574.h.

◆ pin_mode()

void esphome::pcf8574::PCF8574GPIOPin::pin_mode ( gpio::Flags flags)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 106 of file pcf8574.cpp.

◆ set_flags()

void esphome::pcf8574::PCF8574GPIOPin::set_flags ( gpio::Flags flags)
inline

Definition at line 62 of file pcf8574.h.

◆ set_inverted()

void esphome::pcf8574::PCF8574GPIOPin::set_inverted ( bool inverted)
inline

Definition at line 61 of file pcf8574.h.

◆ set_parent()

void esphome::pcf8574::PCF8574GPIOPin::set_parent ( PCF8574Component * parent)
inline

Definition at line 59 of file pcf8574.h.

◆ set_pin()

void esphome::pcf8574::PCF8574GPIOPin::set_pin ( uint8_t pin)
inline

Definition at line 60 of file pcf8574.h.

◆ setup()

void esphome::pcf8574::PCF8574GPIOPin::setup ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 105 of file pcf8574.cpp.

Field Documentation

◆ flags_

gpio::Flags esphome::pcf8574::PCF8574GPIOPin::flags_
protected

Definition at line 70 of file pcf8574.h.

◆ inverted_

bool esphome::pcf8574::PCF8574GPIOPin::inverted_
protected

Definition at line 69 of file pcf8574.h.

◆ parent_

PCF8574Component* esphome::pcf8574::PCF8574GPIOPin::parent_
protected

Definition at line 67 of file pcf8574.h.

◆ pin_

uint8_t esphome::pcf8574::PCF8574GPIOPin::pin_
protected

Definition at line 68 of file pcf8574.h.


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