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

Fixed tp implementation for resistive mikromedia boards #72

Merged
merged 2 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions api/tp/lib/src/tp/tp.c
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,10 @@ tp_process( tp_t * ctx )
ctx->gesture_prev = TP_EVENT_GEST_NONE;
ctx->release = TP_RELEASE_DET;
ctx->touch_prev.n_touches = 0;
// For TSC2003 display there can be only 1 touch, so if display is not pressed, there are no touches.
#ifdef __TP_TSC2003__
ctx->touch.n_touches = 0;
StrahinjaJacimovic marked this conversation as resolved.
Show resolved Hide resolved
#endif
}

return status;
Expand Down
30 changes: 30 additions & 0 deletions changelog/v2.11.3/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<p align="center">
<img src="http://www.mikroe.com/img/designs/beta/logo_small.png?raw=true" alt="MikroElektronika"/>
</p>

---

**[BACK TO MAIN FILE](../../changelog.md)**

---

# `v2.11.3`

+ released: 2024-10-01

## Changes

- [`v2.11.3`](#v2113)
- [Changes](#changes)
- [Fixes](#fixes)

### Fixes

+ Fixed touch panel implementation and TSC2003 library to recognize touch on TSC2003 RESISTIVE Displays while using LVGL projects
+ Fixed TP_ROTATION value to be "180" for all 4" CAPACITIVE Mikromedia Boards with PIC32MZ so touch position can be detected correctly

---

**[BACK TO MAIN FILE](../../changelog.md)**

---
2 changes: 1 addition & 1 deletion middleware/tsc2003/lib/src/tsc2003.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ tp_err_t tsc2003_process( tsc2003_t * ctx ) {
}
}
} else {
ctx->press_det = (ctx->pen_down) ? (TP_EVENT_PRESS_DET) : (TP_EVENT_PRESS_NOT_DET);
ctx->press_det = TP_EVENT_PRESS_NOT_DET;
}

return TP_OK;
Expand Down
Loading