70 void setup()
override;
109 void setup()
override;
This Class provides the methods to read/write bytes from/to an i2c device.
virtual void process(uint16_t data)=0
void set_touch_threshold(uint8_t touch_threshold)
uint8_t gpio_enable_
The enable mask - zero means high Z, 1 means GPIO usage.
bool digital_read(uint8_t ionum)
void set_release_debounce(uint8_t debounce)
float get_setup_priority() const override
uint8_t gpio_direction_
Mask for the pin mode - 1 means output, 0 means input.
std::vector< MPR121Channel * > channels_
uint8_t gpio_output_
The mask to write as output state - 1 means HIGH, 0 means LOW.
enum esphome::mpr121::MPR121Component::ErrorCode NONE
void digital_write(uint8_t ionum, bool value)
uint8_t release_threshold_
void pin_mode(uint8_t ionum, gpio::Flags flags)
void dump_config() override
uint8_t gpio_input_
The mask to read as input state - 1 means HIGH, 0 means LOW.
void set_max_touch_channel(uint8_t max_touch_channel)
void set_release_threshold(uint8_t release_threshold)
uint8_t get_touch_threshold() const
void set_touch_debounce(uint8_t debounce)
uint8_t max_touch_channel_
uint8_t get_release_threshold() const
void register_channel(MPR121Channel *channel)
Helper class to expose a MPR121 pin as an internal input GPIO pin.
void digital_write(bool value) override
std::string dump_summary() const override
void set_flags(gpio::Flags flags)
void set_pin(uint8_t pin)
gpio::Flags get_flags() const override
void pin_mode(gpio::Flags flags) override
void set_inverted(bool inverted)
void set_parent(MPR121Component *parent)
MPR121Component * parent_
bool digital_read() override
const float IO
For components that represent GPIO pins like PCF8573.
Providing packet encoding functions for exchanging data with a remote host.