• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

main/11-Mar-2024-162126

CMakeLists.txtD11-Mar-2024250 75

README.mdD11-Mar-20248.5 KiB139124

README.md

1| Supported Targets | ESP32-S2 |
2| ----------------- | -------- |
3
4# Touch button example
5
6This example demonstrates how to use the Touch Element library of capacitive touch sensor and set up more than one type of touch elements and handle all the event messages in one task.
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
14### Build and Flash
15
16Build the project and flash it to the target board, then run monitor tool to view serial output:
17
18```
19idf.py -p PORT flash monitor
20```
21
22(Replace PORT with the name of the serial port to use.)
23
24(To exit the serial monitor, type ``Ctrl-]``.)
25
26See the Getting Started Guide for full steps to configure and use ESP-IDF to build projects.
27
28## Example Output
29
30```
31I (331) Touch Elements Combination Example: Touch element library installed
32I (331) Touch Elements Combination Example: Touch button installed
33I (341) Touch Elements Combination Example: Touch buttons created
34I (351) Touch Elements Combination Example: Touch slider installed
35I (351) Touch Elements Combination Example: Touch slider created
36I (361) Touch Elements Combination Example: Touch element library start
37I (1841) Touch Elements Combination Example: Button[6] Press
38I (1971) Touch Elements Combination Example: Button[6] Release
39I (2201) Touch Elements Combination Example: Button[8] Press
40I (2351) Touch Elements Combination Example: Button[8] Release
41I (2561) Touch Elements Combination Example: Button[10] Press
42I (2721) Touch Elements Combination Example: Button[10] Release
43I (3431) Touch Elements Combination Example: Slider Press, position: 0
44I (3441) Touch Elements Combination Example: Slider Calculate, position: 0
45I (3451) Touch Elements Combination Example: Slider Calculate, position: 0
46I (3461) Touch Elements Combination Example: Slider Calculate, position: 0
47I (3471) Touch Elements Combination Example: Slider Calculate, position: 0
48I (3481) Touch Elements Combination Example: Slider Calculate, position: 0
49I (3491) Touch Elements Combination Example: Slider Calculate, position: 0
50I (3501) Touch Elements Combination Example: Slider Calculate, position: 1
51I (3511) Touch Elements Combination Example: Slider Calculate, position: 1
52I (3521) Touch Elements Combination Example: Slider Calculate, position: 2
53I (3531) Touch Elements Combination Example: Slider Calculate, position: 2
54I (3541) Touch Elements Combination Example: Slider Calculate, position: 3
55I (3551) Touch Elements Combination Example: Slider Calculate, position: 4
56I (3561) Touch Elements Combination Example: Slider Calculate, position: 5
57I (3571) Touch Elements Combination Example: Slider Calculate, position: 6
58I (3581) Touch Elements Combination Example: Slider Calculate, position: 7
59I (3591) Touch Elements Combination Example: Slider Calculate, position: 8
60I (3601) Touch Elements Combination Example: Slider Calculate, position: 10
61I (3611) Touch Elements Combination Example: Slider Calculate, position: 11
62I (3621) Touch Elements Combination Example: Slider Calculate, position: 12
63I (3631) Touch Elements Combination Example: Slider Calculate, position: 13
64I (3641) Touch Elements Combination Example: Slider Calculate, position: 15
65I (3651) Touch Elements Combination Example: Slider Calculate, position: 16
66I (3661) Touch Elements Combination Example: Slider Calculate, position: 17
67I (3671) Touch Elements Combination Example: Slider Calculate, position: 19
68I (3681) Touch Elements Combination Example: Slider Calculate, position: 20
69I (3691) Touch Elements Combination Example: Slider Calculate, position: 21
70I (3701) Touch Elements Combination Example: Slider Calculate, position: 23
71I (3711) Touch Elements Combination Example: Slider Calculate, position: 24
72I (3721) Touch Elements Combination Example: Slider Calculate, position: 26
73I (3731) Touch Elements Combination Example: Slider Calculate, position: 27
74I (3741) Touch Elements Combination Example: Slider Calculate, position: 28
75I (3751) Touch Elements Combination Example: Slider Calculate, position: 29
76I (3761) Touch Elements Combination Example: Slider Calculate, position: 31
77I (3771) Touch Elements Combination Example: Slider Calculate, position: 32
78I (3781) Touch Elements Combination Example: Slider Calculate, position: 33
79I (3791) Touch Elements Combination Example: Slider Calculate, position: 34
80I (3801) Touch Elements Combination Example: Slider Calculate, position: 36
81I (3811) Touch Elements Combination Example: Slider Calculate, position: 37
82I (3821) Touch Elements Combination Example: Slider Calculate, position: 38
83I (3831) Touch Elements Combination Example: Slider Calculate, position: 39
84I (3841) Touch Elements Combination Example: Slider Calculate, position: 41
85I (3851) Touch Elements Combination Example: Slider Calculate, position: 42
86I (3861) Touch Elements Combination Example: Slider Calculate, position: 43
87I (3871) Touch Elements Combination Example: Slider Calculate, position: 45
88I (3881) Touch Elements Combination Example: Slider Calculate, position: 47
89I (3891) Touch Elements Combination Example: Slider Calculate, position: 48
90I (3901) Touch Elements Combination Example: Slider Calculate, position: 50
91I (3911) Touch Elements Combination Example: Slider Calculate, position: 52
92I (3921) Touch Elements Combination Example: Slider Calculate, position: 53
93I (3931) Touch Elements Combination Example: Slider Calculate, position: 55
94I (3941) Touch Elements Combination Example: Slider Calculate, position: 57
95I (3951) Touch Elements Combination Example: Slider Calculate, position: 58
96I (3961) Touch Elements Combination Example: Slider Calculate, position: 60
97I (3971) Touch Elements Combination Example: Slider Calculate, position: 61
98I (3981) Touch Elements Combination Example: Slider Calculate, position: 62
99I (3991) Touch Elements Combination Example: Slider Calculate, position: 64
100I (4001) Touch Elements Combination Example: Slider Calculate, position: 65
101I (4011) Touch Elements Combination Example: Slider Calculate, position: 66
102I (4021) Touch Elements Combination Example: Slider Calculate, position: 68
103I (4031) Touch Elements Combination Example: Slider Calculate, position: 69
104I (4041) Touch Elements Combination Example: Slider Calculate, position: 70
105I (4051) Touch Elements Combination Example: Slider Calculate, position: 72
106I (4061) Touch Elements Combination Example: Slider Calculate, position: 73
107I (4071) Touch Elements Combination Example: Slider Calculate, position: 75
108I (4081) Touch Elements Combination Example: Slider Calculate, position: 76
109I (4091) Touch Elements Combination Example: Slider Calculate, position: 77
110I (4101) Touch Elements Combination Example: Slider Calculate, position: 79
111I (4111) Touch Elements Combination Example: Slider Calculate, position: 80
112I (4121) Touch Elements Combination Example: Slider Calculate, position: 81
113I (4131) Touch Elements Combination Example: Slider Calculate, position: 83
114I (4141) Touch Elements Combination Example: Slider Calculate, position: 84
115I (4151) Touch Elements Combination Example: Slider Calculate, position: 85
116I (4161) Touch Elements Combination Example: Slider Calculate, position: 86
117I (4171) Touch Elements Combination Example: Slider Calculate, position: 88
118I (4181) Touch Elements Combination Example: Slider Calculate, position: 89
119I (4191) Touch Elements Combination Example: Slider Calculate, position: 90
120I (4201) Touch Elements Combination Example: Slider Calculate, position: 91
121I (4211) Touch Elements Combination Example: Slider Calculate, position: 92
122I (4221) Touch Elements Combination Example: Slider Calculate, position: 93
123I (4231) Touch Elements Combination Example: Slider Calculate, position: 94
124I (4241) Touch Elements Combination Example: Slider Calculate, position: 95
125I (4251) Touch Elements Combination Example: Slider Calculate, position: 96
126I (4261) Touch Elements Combination Example: Slider Calculate, position: 96
127I (4271) Touch Elements Combination Example: Slider Calculate, position: 97
128I (4281) Touch Elements Combination Example: Slider Calculate, position: 98
129I (4291) Touch Elements Combination Example: Slider Calculate, position: 99
130I (4301) Touch Elements Combination Example: Slider Calculate, position: 99
131I (4311) Touch Elements Combination Example: Slider Calculate, position: 100
132I (4321) Touch Elements Combination Example: Slider Calculate, position: 100
133I (4331) Touch Elements Combination Example: Slider Calculate, position: 100
134I (4341) Touch Elements Combination Example: Slider Calculate, position: 101
135I (4351) Touch Elements Combination Example: Slider Release, position: 101
136```
137
138See the README.md file in the upper level 'examples' directory for more information about examples.
139