|
ESPHome 2026.11.0-dev
|
Pin of a GPIO expander. More...
#include <expander_gpio_pin.h>
Public Member Functions | |
| ExpanderGPIOPin () | |
| 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_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 | |
| virtual bool | is_internal () |
| Only the platform pin class behind the InternalGPIOPin alias may return true: callers static_cast to InternalGPIOPin on it. | |
| bool | get_hold () const |
| virtual bool | is_held () const |
| bool | get_hold () const |
| bool | is_held () const |
Public Member Functions inherited from esphome::Parented< Parent > | |
| Parented () | |
| Parented (Parent *parent) | |
| Parent * | get_parent () const |
| Get the parent of this object. | |
| void | set_parent (Parent *parent) |
| Set the parent of this object. | |
Protected Attributes | |
| uint8_t | pin_ {0} |
| bool | inverted_ {false} |
| gpio::Flags | flags_ {} |
Protected Attributes inherited from esphome::Parented< Parent > | |
| Parent * | parent_ |
Pin of a GPIO expander.
Parent provides pin_mode(pin, flags), digital_read(pin) and digital_write(pin, value). dump_summary() is specialized per expander with the macros below, outside the template so that its format string stays in flash on ESP8266; a missing macro is an undefined reference to ExpanderGPIOPin<X>::dump_summary. Built by pins.new_parented_pin().
Definition at line 12 of file expander_gpio_pin.h.
|
inline |
Definition at line 15 of file expander_gpio_pin.h.
|
inlineoverridevirtual |
Implements esphome::GPIOPin.
Definition at line 19 of file expander_gpio_pin.h.
|
inlineoverridevirtual |
Implements esphome::GPIOPin.
Definition at line 20 of file expander_gpio_pin.h.
|
overridevirtual |
Reimplemented from esphome::GPIOPin.
|
inlineoverridevirtual |
Implements esphome::GPIOPin.
Definition at line 27 of file expander_gpio_pin.h.
|
inlineoverridevirtual |
Implements esphome::GPIOPin.
Definition at line 18 of file expander_gpio_pin.h.
|
inline |
Definition at line 25 of file expander_gpio_pin.h.
|
inline |
Definition at line 24 of file expander_gpio_pin.h.
|
inline |
Definition at line 23 of file expander_gpio_pin.h.
|
inlineoverridevirtual |
Implements esphome::GPIOPin.
Definition at line 17 of file expander_gpio_pin.h.
|
protected |
Definition at line 32 of file expander_gpio_pin.h.
|
protected |
Definition at line 31 of file expander_gpio_pin.h.
|
protected |
Definition at line 30 of file expander_gpio_pin.h.