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
49f44e41
Commit
49f44e41
authored
Oct 12, 2022
by
Bodmer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #1960
TFT pixel reads for smooth graphics functions now supported.
parent
a3015f00
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
TFT_eSPI.cpp
TFT_eSPI.cpp
+3
-3
TFT_eSPI.h
TFT_eSPI.h
+1
-1
library.json
library.json
+1
-1
library.properties
library.properties
+1
-1
No files found.
TFT_eSPI.cpp
View file @
49f44e41
...
...
@@ -1071,7 +1071,7 @@ uint16_t TFT_eSPI::readPixel(int32_t x0, int32_t y0)
#if defined(TFT_PARALLEL_8_BIT) || defined(RP2040_PIO_INTERFACE)
CS_L;
if
(
!
inTransaction
)
CS_L
;
readAddrWindow
(
x0
,
y0
,
1
,
1
);
...
...
@@ -1091,7 +1091,7 @@ uint16_t TFT_eSPI::readPixel(int32_t x0, int32_t y0)
// Read window pixel 24 bit RGB values and fill in LS bits
uint16_t
rgb
=
((
readByte
()
&
0xF8
)
<<
8
)
|
((
readByte
()
&
0xFC
)
<<
3
)
|
(
readByte
()
>>
3
);
CS_H;
if
(
!
inTransaction
)
CS_H
;
// Set masked pins D0- D7 to output
busDir
(
dir_mask
,
OUTPUT
);
...
...
@@ -1103,7 +1103,7 @@ uint16_t TFT_eSPI::readPixel(int32_t x0, int32_t y0)
// Fetch the 16 bit BRG pixel
uint16_t
bgr
=
(
readByte
()
<<
8
)
|
readByte
();
CS_H;
if
(
!
inTransaction
)
CS_H
;
// Set masked pins D0- D7 to output
busDir
(
dir_mask
,
OUTPUT
);
...
...
TFT_eSPI.h
View file @
49f44e41
...
...
@@ -16,7 +16,7 @@
#ifndef _TFT_eSPIH_
#define _TFT_eSPIH_
#define TFT_ESPI_VERSION "2.4.7
7
"
#define TFT_ESPI_VERSION "2.4.7
8
"
// Bit level feature flags
// Bit 0 set: viewport capability
...
...
library.json
View file @
49f44e41
{
"name"
:
"TFT_eSPI"
,
"version"
:
"2.4.7
7
"
,
"version"
:
"2.4.7
8
"
,
"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 @
49f44e41
name
=
TFT_eSPI
version
=
2.4.7
7
version
=
2.4.7
8
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