Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

esp32: Expose touch_pad_get/set_meas_time() in python#6408

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
fgervais wants to merge2 commits intomicropython:master
base:master
Choose a base branch
Loading
fromfgervais:esp32-touch-sensor-meas-time

Conversation

fgervais
Copy link

The esp32 can enter deep sleep and use really little current. For example on the tinypico board I measured a current of 24 uA in deep sleep.

The esp32 also provides a touch sensor module which can be used to wake-up from deep sleep. However this module uses about 2 mA of current to do the touch detection and (by default) does it for about 4ms at 37 Hz.

This means that all these efforts to use really little power will be ruined by the touch sensor using 100 times the sleep power roughly 15% of the time.

The good news it that Espressif provides a way to customize those timings and depending on the application, the power consumption of the touch sensor can be greatly reduced.

This patch simply exposes this functionality in python.

Signed-off-by: Francois Gervais <francoisgervais@gmail.com>
@fgervais
Copy link
Author

Anybody know why it fails in ESP-IDFv4?

@fgervais
Copy link
Author

Ok looks good now

tannewt pushed a commit to tannewt/circuitpython that referenced this pull requestMay 23, 2022
@projectgus
Copy link
Contributor

This is an automated heads-up that we've just merged a Pull Request
that removes the STATIC macro from MicroPython's C API.

See#13763

A search suggests this PR might apply the STATIC macro to some C code. If it
does, then next time you rebase the PR (or merge from master) then you should
please replace all theSTATIC keywords withstatic.

Although this is an automated message, feel free to @-reply to me directly if
you have any questions about this.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@fgervais@projectgus@dpgeorge

[8]ページ先頭

©2009-2025 Movatter.jp