Skip to content
Discussion options

You must be logged in to vote

@nuhaildam
Thanks for pointing this out.
Yes there was an update on the IDF that has changed this.
I have updated the video. please see https://learnesp32.com/videos/9/10_touch at 3:52

In short to correct this I added this line

#define TOUCH_PAD_GPIO13_CHANNEL TOUCH_PAD_NUM4

full source

#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/touch_pad.h"

#define TOUCH_PAD_GPIO13_CHANNEL TOUCH_PAD_NUM4

void app_main()
{
    touch_pad_init();
    touch_pad_set_voltage(TOUCH_HVOLT_2V7, TOUCH_LVOLT_0V5, TOUCH_HVOLT_ATTEN_1V);
    touch_pad_config(TOUCH_PAD_GPIO13_CHANNEL, -1);
    touch_pad_filter_start(10);

    uint16_t val;
    uint16_t touch_filter_…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Mair
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants