• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Touch Sensor of ESP32 Course

Q&A Forum › Category: ESP32 › Touch Sensor of ESP32 Course
0 Vote Up Vote Down
JAMES RYBAK asked 7 years ago

I couldn’t get the touch sensor sketch of Module 2, Unit 2 in the ESP32 course to work correctly until I added the following statement to the sketch
pinMode (touchPin, INPUT);

4 Answers
0 Vote Up Vote Down
Allen Applegarth answered 7 years ago

wrong item

0 Vote Up Vote Down
Rui Santos Staff answered 7 years ago

Hello James, it shouldn’t be necessary that pinMode()… According tot he official examples and documentation doing
touchRead(); 
Should work without having to set a pinMode… Which ESP32 board are you using? Are you using the latest version of the ESP32 add-on for the Arduino IDE?

0 Vote Up Vote Down
JAMES RYBAK answered 7 years ago

Hello Rui,
I am using the ESPRESSIF ESP32 DEVKITV1.  I am using the latest version of the ESP32 add-on for the Arduino IDE.
 

0 Vote Up Vote Down
Rui Santos Staff answered 7 years ago

Thanks for letting me know. If that error happens to someone else, I’ll include that note in the Unit!
Thanks again,
Rui

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.