Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wake/Longpress/Toggle support for Touch-Plugin on compatible ESP32 devices #5202

Open
wants to merge 26 commits into
base: mega
Choose a base branch
from

Conversation

chromoxdor
Copy link
Contributor

@chromoxdor chromoxdor commented Jan 1, 2025

When i resolve conflicts in VSCode and then push it i always have to do a new PR... Sorry, I am still not able to handle this.

Here the text from the old PR:

  • added extra routine for esp32 s2 and s3
  • added option to wake up the esp for supported devices (tested with s3 and classic)
  • added second value "state" for easier handling
  • added "toggle state" option
  • failed epically to add a long press event because I am just a simple person, but left the remains for someone else to pick up
  • added "long press" event
  • pins 10 to 14 now available for ESP32 s2 and s3 they still cause crashes

And as always, please don't stone me. Me and c++ are not going to be friends in this life anymore. :)

If you agree to the changes i will update the documentation accordingly.

Resolves #5164

- added extra routine for esp32 s2 and s3
- added option to wake up the esp for supported devices (tested with s3)
- added second value "state" for easier handling
- failed epically to add a long press event because I am just a simple person, but left the remains for someone else to pick up

And as always, please don't stone me. me and c++ are not going to be friends in this life anymore. :)

If you agree to the changes i will update the documentatzion accordingly
- added and tested wakeup on ep32 classic
get the actual valuename
- added "toggle state" option (since I am not able to add a long press :)  )
- added "long press" event
- disabled "Single event with all values" since it is not working with the recent code (suggestions are welcome) but there is also the question if it is necessary
- make all touch pins available on s2/s3
- check if touchpad exists
- reverting T10_to_T14 support
- type of threshold now dependent on model (uin32_t for s2 and s3)
- max threshold value now also dependent on the type of esp
- Hopefully fixed compile errors for non-touch ESP32 variants by standardizing the use of uint32_t for the threshold parameter on ESP32 Classic. The value remains limited by P097_MAX_THRESHOLD_VALUE to 4095.
code:
- changed order of device settings
- added changelog
I am lagging one year behind :)
docs: a little bit of correcting and rephrasing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[P097] needs update of documentation
2 participants