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
0c4bedc6
Commit
0c4bedc6
authored
Oct 25, 2020
by
Bodmer
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Bodmer/TFT_eSPI
parents
35126bcc
e41e8698
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
User_Setups/Setup36_RPi_touch_ST7796.h
User_Setups/Setup36_RPi_touch_ST7796.h
+1
-1
examples/160 x 128/TFT_Clock_Digital/TFT_Clock_Digital.ino
examples/160 x 128/TFT_Clock_Digital/TFT_Clock_Digital.ino
+1
-1
No files found.
User_Setups/Setup36_RPi_touch_ST7796.h
View file @
0c4bedc6
// See SetupX_Template.h for all options available
// See SetupX_Template.h for all options available
#define RPI_DISPLAY_TYPE
#define RPI_DISPLAY_TYPE
#define
ST7796
_DRIVER // 20MHz maximum SPI
#define
ILI9341
_DRIVER // 20MHz maximum SPI
#define TFT_MISO 19
#define TFT_MISO 19
...
...
examples/160 x 128/TFT_Clock_Digital/TFT_Clock_Digital.ino
View file @
0c4bedc6
...
@@ -99,7 +99,7 @@ void loop() {
...
@@ -99,7 +99,7 @@ void loop() {
// Font 7 is to show a pseudo 7 segment display.
// Font 7 is to show a pseudo 7 segment display.
// Font 7 only contains characters [space] 0 1 2 3 4 5 6 7 8 9 0 : .
// Font 7 only contains characters [space] 0 1 2 3 4 5 6 7 8 9 0 : .
tft
.
drawString
(
"88:88"
,
xpos
,
ypos
,
7
);
// Overwrite the text to clear it
tft
.
drawString
(
"88:88"
,
xpos
,
ypos
,
7
);
// Overwrite the text to clear it
tft
.
setTextColor
(
0xFBE0
,
TFT_BLACK
);
// Orange
tft
.
setTextColor
(
0xFBE0
);
// Orange
omm
=
mm
;
omm
=
mm
;
if
(
hh
<
10
)
xpos
+=
tft
.
drawChar
(
'0'
,
xpos
,
ypos
,
7
);
if
(
hh
<
10
)
xpos
+=
tft
.
drawChar
(
'0'
,
xpos
,
ypos
,
7
);
...
...
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