Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TFT_eSPI
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
TFT_eSPI
Commits
936b5ccc
Commit
936b5ccc
authored
Dec 22, 2017
by
Bodmer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add default touch detect threshold
parent
2e84218e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
TFT_eSPI.h
TFT_eSPI.h
+1
-1
No files found.
TFT_eSPI.h
View file @
936b5ccc
...
...
@@ -484,7 +484,7 @@ class TFT_eSPI : public Print {
uint32_t
lastColor
=
0xFFFF
;
// These are associated with the Touch Screen handlers
uint8_t
validTouch
(
uint16_t
*
x
,
uint16_t
*
y
,
uint16_t
threshold
);
uint8_t
validTouch
(
uint16_t
*
x
,
uint16_t
*
y
,
uint16_t
threshold
=
600
);
// Initialise with example calibration values so processor does not crash if setTouch() not called in setup()
uint16_t
touchCalibration_x0
=
300
,
touchCalibration_x1
=
3600
,
touchCalibration_y0
=
300
,
touchCalibration_y1
=
3600
;
uint8_t
touchCalibration_rotate
=
1
,
touchCalibration_invert_x
=
2
,
touchCalibration_invert_y
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment