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
781b0bc6
Commit
781b0bc6
authored
Jun 16, 2022
by
Bodmer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #1877
parent
ba819765
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
Extensions/Sprite.cpp
Extensions/Sprite.cpp
+3
-3
library.json
library.json
+1
-1
library.properties
library.properties
+1
-1
No files found.
Extensions/Sprite.cpp
View file @
781b0bc6
...
...
@@ -423,7 +423,7 @@ bool TFT_eSprite::pushRotated(int16_t angle, uint32_t transp)
if
(
_bpp
==
4
)
tpcolor
=
_colorMap
[
transp
&
0x0F
];
tpcolor
=
tpcolor
>>
8
|
tpcolor
<<
8
;
// Working with swapped color bytes
}
_tft
->
startWrite
();
// Avoid transaction overhead for every tft pixel
_tft
->
startWrite
();
// Avoid transaction overhead for every tft pixel
// Scan destination bounding box and fetch transformed pixels from source Sprite
for
(
int32_t
y
=
min_y
;
y
<=
max_y
;
y
++
,
yt
++
)
{
...
...
@@ -441,7 +441,7 @@ bool TFT_eSprite::pushRotated(int16_t angle, uint32_t transp)
int32_t
yp
=
ys
>>
FP_SCALE
;
if
(
_bpp
==
16
)
{
rp
=
_img
[
xp
+
yp
*
_iwidth
];
}
else
{
rp
=
readPixel
(
xp
,
yp
);
rp
=
(
uint16_t
)(
rp
>>
8
|
rp
<<
8
);
}
if
(
tpcolor
==
rp
)
{
if
(
t
ransp
!=
0x00FFFFFF
&&
t
pcolor
==
rp
)
{
if
(
pixel_count
)
{
// TFT window is already clipped, so this is faster than pushImage()
_tft
->
setWindow
(
x
-
pixel_count
,
y
,
x
-
1
,
y
);
...
...
@@ -517,7 +517,7 @@ bool TFT_eSprite::pushRotated(TFT_eSprite *spr, int16_t angle, uint32_t transp)
int32_t
yp
=
ys
>>
FP_SCALE
;
if
(
_bpp
==
16
)
rp
=
_img
[
xp
+
yp
*
_iwidth
];
else
{
rp
=
readPixel
(
xp
,
yp
);
rp
=
(
uint16_t
)(
rp
>>
8
|
rp
<<
8
);
}
if
(
tpcolor
==
rp
)
{
if
(
t
ransp
!=
0x00FFFFFF
&&
t
pcolor
==
rp
)
{
if
(
pixel_count
)
{
spr
->
pushImage
(
x
-
pixel_count
,
y
,
pixel_count
,
1
,
sline_buffer
);
pixel_count
=
0
;
...
...
library.json
View file @
781b0bc6
{
"name"
:
"TFT_eSPI"
,
"version"
:
"2.4.7
0
"
,
"version"
:
"2.4.7
1
"
,
"keywords"
:
"Arduino, tft, display, ttgo, LilyPi, WT32-SC01, ePaper, display, Pico, RP2040 Nano Connect, RP2040, STM32, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9481, ILI9486, ILI9488, ST7789, ST7796, RM68140, SSD1351, SSD1963, ILI9225, HX8357D, GC9A01, R61581"
,
"description"
:
"A TFT and ePaper SPI graphics library with optimisation for Raspberry Pi Pico, RP2040, ESP8266, ESP32 and STM32"
,
"repository"
:
...
...
library.properties
View file @
781b0bc6
name
=
TFT_eSPI
version
=
2.4.7
0
version
=
2.4.7
1
author
=
Bodmer
maintainer
=
Bodmer
sentence
=
TFT graphics library for Arduino processors with performance optimisation for RP2040, STM32, ESP8266 and ESP32
...
...
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