ADC Button Peripheral¶
Read status of buttons connected to an ADC input using a resistor ladder. Configuration provides for more than a singe ADC input to read several sets of buttons. For an example hardware implementation please refer to schematic of ESP32-LyraTD-MSC V2.2 Upper Board (PDF).
Application Examples¶
Implementation of this API is demonstrated in the following example:
API Reference¶
Header File¶
Functions¶
Create the button peripheral handle for esp_peripherals.
- Note
- The handle created by this function is automatically destroyed when esp_periph_destroy is called.
- Return
- The esp peripheral handle.
- Parameters
btn_cfg
: The button configuration.
Structures¶
The configuration of ADC Button.
Public Members
An array with configuration of buttons
The array size