ButtonToSwitch Library for ESP32 (Arduino) v5.0.0
A library that provides elaborated switch mechanism behavior simulation for digital signals inputs
Loading...
Searching...
No Matches
McuInputPin Class Reference

Concrete Strategy class for MCU GPIO pin input as signal source. More...

#include <PrssSgnlSrc_esp32.h>

Inheritance diagram for McuInputPin:
Collaboration diagram for McuInputPin:

Detailed Description

Concrete Strategy class for MCU GPIO pin input as signal source.

Concrete Strategy class for public method "virtual pressing" of a MPButton.

This class implements the PressSignalSource interface to provide the signal source for the DbncdMPBttn class objects using an MCU GPIO pin as the input signal source.

This class implements the PressSignalSource interface to provide the signal source for the DbncdMPBttn class objects using methods to generate the press and release events. This strategy is useful as a generic path to generate the needed signals when no physical connection is present:

  • Wireless implementations.
  • Wired interfaces connections (SPI, UART, etc)