ESPHome  2024.12.2
Public Member Functions | Protected Attributes
esphome::mpr121::MPR121GPIOPin Class Reference

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

#include <mpr121.h>

Inheritance diagram for esphome::mpr121::MPR121GPIOPin:
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
 
std::string dump_summary () const override
 
void set_parent (MPR121Component *parent)
 
void set_pin (uint8_t pin)
 
void set_inverted (bool inverted)
 
void set_flags (gpio::Flags flags)
 
- Public Member Functions inherited from esphome::GPIOPin
virtual bool is_internal ()
 

Protected Attributes

MPR121Componentparent_
 
uint8_t pin_
 
bool inverted_
 
gpio::Flags flags_
 

Detailed Description

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

Definition at line 107 of file mpr121.h.

Member Function Documentation

◆ digital_read()

bool esphome::mpr121::MPR121GPIOPin::digital_read ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 148 of file mpr121.cpp.

◆ digital_write()

void esphome::mpr121::MPR121GPIOPin::digital_write ( bool  value)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 153 of file mpr121.cpp.

◆ dump_summary()

std::string esphome::mpr121::MPR121GPIOPin::dump_summary ( ) const
overridevirtual

Implements esphome::GPIOPin.

Definition at line 158 of file mpr121.cpp.

◆ pin_mode()

void esphome::mpr121::MPR121GPIOPin::pin_mode ( gpio::Flags  flags)
overridevirtual

Implements esphome::GPIOPin.

Definition at line 143 of file mpr121.cpp.

◆ set_flags()

void esphome::mpr121::MPR121GPIOPin::set_flags ( gpio::Flags  flags)
inline

Definition at line 118 of file mpr121.h.

◆ set_inverted()

void esphome::mpr121::MPR121GPIOPin::set_inverted ( bool  inverted)
inline

Definition at line 117 of file mpr121.h.

◆ set_parent()

void esphome::mpr121::MPR121GPIOPin::set_parent ( MPR121Component parent)
inline

Definition at line 115 of file mpr121.h.

◆ set_pin()

void esphome::mpr121::MPR121GPIOPin::set_pin ( uint8_t  pin)
inline

Definition at line 116 of file mpr121.h.

◆ setup()

void esphome::mpr121::MPR121GPIOPin::setup ( )
overridevirtual

Implements esphome::GPIOPin.

Definition at line 141 of file mpr121.cpp.

Field Documentation

◆ flags_

gpio::Flags esphome::mpr121::MPR121GPIOPin::flags_
protected

Definition at line 124 of file mpr121.h.

◆ inverted_

bool esphome::mpr121::MPR121GPIOPin::inverted_
protected

Definition at line 123 of file mpr121.h.

◆ parent_

MPR121Component* esphome::mpr121::MPR121GPIOPin::parent_
protected

Definition at line 121 of file mpr121.h.

◆ pin_

uint8_t esphome::mpr121::MPR121GPIOPin::pin_
protected

Definition at line 122 of file mpr121.h.


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