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
c8530d7a
Commit
c8530d7a
authored
Feb 01, 2020
by
Bodmer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4 bpp Sprite bug fix
OR has precedence over AND so brackets needed. Remove unused varaible.
parent
8209c003
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
6 deletions
+5
-6
Extensions/Sprite.cpp
Extensions/Sprite.cpp
+2
-3
TFT_eSPI.h
TFT_eSPI.h
+1
-1
library.json
library.json
+1
-1
library.properties
library.properties
+1
-1
No files found.
Extensions/Sprite.cpp
View file @
c8530d7a
...
...
@@ -831,7 +831,6 @@ uint8_t TFT_eSprite::readPixelValue(int32_t x, int32_t y)
if
(
_bpp
==
4
)
{
uint16_t
color
;
if
((
x
&
0x01
)
==
0
)
return
((
_img4
[((
x
+
y
*
_iwidth
)
>>
1
)]
&
0xF0
)
>>
4
)
&
0x0F
;
// even index = bits 7 .. 4
else
...
...
@@ -1639,14 +1638,14 @@ void TFT_eSprite::drawFastVLine(int32_t x, int32_t y, int32_t h, uint32_t color)
{
uint8_t
c
=
(
uint8_t
)
(
color
&
0xF
)
<<
4
;
while
(
h
--
)
{
_img4
[(
x
+
_iwidth
*
y
)
>>
1
]
=
(
uint8_t
)
(
c
|
_img4
[(
x
+
_iwidth
*
y
)
>>
1
]
&
0x0F
);
_img4
[(
x
+
_iwidth
*
y
)
>>
1
]
=
(
uint8_t
)
(
c
|
(
_img4
[(
x
+
_iwidth
*
y
)
>>
1
]
&
0x0F
)
);
y
++
;
}
}
else
{
uint8_t
c
=
(
uint8_t
)
color
&
0xF
;
while
(
h
--
)
{
_img4
[(
x
-
1
+
_iwidth
*
y
)
>>
1
]
=
(
uint8_t
)
(
c
|
_img4
[(
x
-
1
+
_iwidth
*
y
)
>>
1
]
&
0xF0
);
// x is odd; new color goes into the low bits.
_img4
[(
x
-
1
+
_iwidth
*
y
)
>>
1
]
=
(
uint8_t
)
(
c
|
(
_img4
[(
x
-
1
+
_iwidth
*
y
)
>>
1
]
&
0xF0
)
);
// x is odd; new color goes into the low bits.
y
++
;
}
}
...
...
TFT_eSPI.h
View file @
c8530d7a
...
...
@@ -16,7 +16,7 @@
#ifndef _TFT_eSPIH_
#define _TFT_eSPIH_
#define TFT_ESPI_VERSION "2.0.
1
"
#define TFT_ESPI_VERSION "2.0.
2
"
/***************************************************************************************
** Section 1: Load required header files
...
...
library.json
View file @
c8530d7a
{
"name"
:
"TFT_eSPI"
,
"version"
:
"2.0.
1
"
,
"version"
:
"2.0.
2
"
,
"keywords"
:
"Arduino, tft, ePaper, display, STM32, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9486, ST7789, RM68140"
,
"description"
:
"A TFT and ePaper SPI graphics library with optimisation for ESP8266, ESP32 and STM32"
,
"repository"
:
...
...
library.properties
View file @
c8530d7a
name
=
TFT_eSPI
version
=
2.0.
1
version
=
2.0.
2
author
=
Bodmer
maintainer
=
Bodmer
sentence
=
TFT graphics library for Arduino processors with performance optimisation for 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