• 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

Esp32 touch sensor

Q&A Forum › Esp32 touch sensor
0 Vote Up Vote Down
umarmohammedru asked 6 years ago

How to work with Esp32 touch sensor in micropython. Thanks.

2 Answers
1 Vote Up Vote Down
Best Answer
Sara Santos Staff answered 6 years ago

Hi.
You can do as follows:
import Touchpad from the machine module:

from machine import TouchPad

define a touchpin, for example

touchpin = TouchPad(Pin(4))

read the value on that pin:

touchpin.read()

I hope this helps.
Regards,
Sara

1 Vote Up Vote Down
umarmohammedru answered 6 years ago

Thanks a lot realy help

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

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 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.