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
673de31f
Commit
673de31f
authored
Apr 28, 2022
by
Bodmer
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Bodmer/TFT_eSPI
parents
f7e9a91e
22901f5d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
examples/Sprite/Animated_dial/Animated_dial.ino
examples/Sprite/Animated_dial/Animated_dial.ino
+2
-1
No files found.
examples/Sprite/Animated_dial/Animated_dial.ino
View file @
673de31f
...
...
@@ -86,7 +86,7 @@ void setup() {
spr
.
createSprite
(
spr_width
,
spr
.
fontHeight
());
uint16_t
bg_color
=
tft
.
readPixel
(
120
,
120
);
// Get colour from dial centre
spr
.
fillSprite
(
bg_color
);
spr
.
setTextColor
(
TFT_WHITE
,
bg_color
);
spr
.
setTextColor
(
TFT_WHITE
,
bg_color
,
true
);
spr
.
setTextDatum
(
MC_DATUM
);
spr
.
setTextPadding
(
spr_width
);
spr
.
drawNumber
(
0
,
spr_width
/
2
,
spr
.
fontHeight
()
/
2
);
...
...
@@ -203,6 +203,7 @@ void plotNeedle(int16_t angle, uint16_t ms_delay)
}
// Update the number at the centre of the dial
spr
.
setTextColor
(
TFT_WHITE
,
bg_color
,
true
);
spr
.
drawNumber
(
old_angle
+
120
,
spr_width
/
2
,
spr
.
fontHeight
()
/
2
);
spr
.
pushSprite
(
120
-
spr_width
/
2
,
120
-
spr
.
fontHeight
()
/
2
);
...
...
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