1| Supported Targets | ESP32-S2 | 2| ----------------- | -------- | 3 4# Touch Element basic example (EVENT) 5 6This example demonstrates how to use the Touch Element library of capacitive touch sensor and set up touch slider. 7 8## How to use example 9 10### Configure the project 11 12* Set the target of the build (where `{IDF_TARGET}` stands for the target chip such as `esp32s2`). 13* Run `menuconfig` to select a dispatch method for the example. 14 15### Build and Flash 16 17Build the project and flash it to the target board, then run monitor tool to view serial output: 18 19``` 20idf.py -p PORT flash monitor 21``` 22 23(Replace PORT with the name of the serial port to use.) 24 25(To exit the serial monitor, type ``Ctrl-]``.) 26 27See the Getting Started Guide for full steps to configure and use ESP-IDF to build projects. 28 29## Example Output 30 31``` 32I (331) Touch Slider Example: Touch element library installed 33I (331) Touch Slider Example: Touch slider installed 34I (341) Touch Slider Example: Touch slider created 35I (341) Touch Slider Example: Touch element library start 36I (1911) Touch Slider Example: Slider Press, position: 0 37I (1921) Touch Slider Example: Slider Calculate, position: 0 38I (1931) Touch Slider Example: Slider Calculate, position: 0 39I (1941) Touch Slider Example: Slider Calculate, position: 0 40I (1951) Touch Slider Example: Slider Calculate, position: 0 41I (1961) Touch Slider Example: Slider Calculate, position: 0 42I (1971) Touch Slider Example: Slider Calculate, position: 0 43I (1981) Touch Slider Example: Slider Calculate, position: 0 44I (1991) Touch Slider Example: Slider Calculate, position: 0 45I (2001) Touch Slider Example: Slider Calculate, position: 0 46I (2011) Touch Slider Example: Slider Calculate, position: 0 47I (2021) Touch Slider Example: Slider Calculate, position: 1 48I (2031) Touch Slider Example: Slider Calculate, position: 1 49I (2041) Touch Slider Example: Slider Calculate, position: 2 50I (2051) Touch Slider Example: Slider Calculate, position: 2 51I (2061) Touch Slider Example: Slider Calculate, position: 4 52I (2071) Touch Slider Example: Slider Calculate, position: 5 53I (2081) Touch Slider Example: Slider Calculate, position: 6 54I (2091) Touch Slider Example: Slider Calculate, position: 8 55I (2101) Touch Slider Example: Slider Calculate, position: 10 56I (2111) Touch Slider Example: Slider Calculate, position: 12 57I (2121) Touch Slider Example: Slider Calculate, position: 15 58I (2131) Touch Slider Example: Slider Calculate, position: 17 59I (2141) Touch Slider Example: Slider Calculate, position: 19 60I (2151) Touch Slider Example: Slider Calculate, position: 22 61I (2161) Touch Slider Example: Slider Calculate, position: 24 62I (2171) Touch Slider Example: Slider Calculate, position: 26 63I (2181) Touch Slider Example: Slider Calculate, position: 29 64I (2191) Touch Slider Example: Slider Calculate, position: 31 65I (2201) Touch Slider Example: Slider Calculate, position: 33 66I (2211) Touch Slider Example: Slider Calculate, position: 35 67I (2221) Touch Slider Example: Slider Calculate, position: 37 68I (2231) Touch Slider Example: Slider Calculate, position: 40 69I (2241) Touch Slider Example: Slider Calculate, position: 42 70I (2251) Touch Slider Example: Slider Calculate, position: 44 71I (2261) Touch Slider Example: Slider Calculate, position: 46 72I (2271) Touch Slider Example: Slider Calculate, position: 48 73I (2281) Touch Slider Example: Slider Calculate, position: 50 74I (2291) Touch Slider Example: Slider Calculate, position: 52 75I (2301) Touch Slider Example: Slider Calculate, position: 54 76I (2311) Touch Slider Example: Slider Calculate, position: 56 77I (2321) Touch Slider Example: Slider Calculate, position: 57 78I (2331) Touch Slider Example: Slider Calculate, position: 59 79I (2341) Touch Slider Example: Slider Calculate, position: 60 80I (2351) Touch Slider Example: Slider Calculate, position: 61 81I (2361) Touch Slider Example: Slider Release, position: 61 82``` 83 84See the README.md file in the upper level 'examples' directory for more information about examples. 85