Hi,
I am a beginner, so my question is very simple:
What is "touch_pad_t"?
Is this a special type of variable?
If so, where is this type stored? Is it stored in RTC_memory to survive in a sleep mode?
Thank anyone in advance for help.
Gennady
touch_pad_t - is it a type of variable?
-
- Posts: 2
- Joined: Thu Oct 22, 2020 8:54 am
-
- Posts: 9745
- Joined: Thu Nov 26, 2015 4:08 am
Re: touch_pad_t - is it a type of variable?
It's a simple enum, nothing special about it. From components/hal/include/hal/touch_sensor_types.h:
Code: Select all
/** Touch pad channel */
typedef enum {
TOUCH_PAD_NUM0 = 0, /*!< Touch pad channel 0 is GPIO4(ESP32) */
TOUCH_PAD_NUM1, /*!< Touch pad channel 1 is GPIO0(ESP32) / GPIO1(ESP32-S2) */
TOUCH_PAD_NUM2, /*!< Touch pad channel 2 is GPIO2(ESP32) / GPIO2(ESP32-S2) */
TOUCH_PAD_NUM3, /*!< Touch pad channel 3 is GPIO15(ESP32) / GPIO3(ESP32-S2) */
[...]
TOUCH_PAD_MAX,
} touch_pad_t;
-
- Posts: 2
- Joined: Thu Oct 22, 2020 8:54 am
Re: touch_pad_t - is it a type of variable?
Hi ESP_Sprite,
Thank you very mush for your help.
Where can I find file components/hal/include/hal/touch_sensor_types.h ?
Looking forward to your response
gennady.sterlin
Thank you very mush for your help.
Where can I find file components/hal/include/hal/touch_sensor_types.h ?
Looking forward to your response
gennady.sterlin
Re: touch_pad_t - is it a type of variable?
you find it in the folder you exactly named in your from github installed/downloaded esp-idfgennady.sterlin wrote: ↑Fri Oct 23, 2020 3:30 pm
Where can I find file components/hal/include/hal/touch_sensor_types.h ?
or if you not have on your desk also online at github.com
cause it is github
you can find github on internet likewise
https://github.com
cause it is espressif stuff we are talking about
you can find the repo stuff from espressif at github under espressif account likewise
https://github.com/espressif
cause the development things are in the esp-idf repo
you can find the SDK Repo from espressif's esp-idf likewise
https://github.com/espressif/esp-idf
cause you are searching for the file components/hal/include/hal/touch_sensor_types.h
you can find this file exactly same folder in the espressif esp-idf github repo likewise
( will not found )
https://github.com/espressif/esp-idf/co ... or_types.h
(so use blob as link here )
https://github.com/espressif/esp-idf/bl ... or_types.h
( or use RAW as link here)
https://raw.githubusercontent.com/espre ... or_types.h
its in the esp.idf repo likewise
esp-idf/components/hal/include/hal/touch_sensor_types.h
regards
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
Who is online
Users browsing this forum: No registered users and 91 guests