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
67e41c75
Commit
67e41c75
authored
Oct 19, 2022
by
Bodmer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow ESP32 DC pin to be >31
parent
13e62a88
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
3 deletions
+12
-3
Processors/TFT_eSPI_ESP32.h
Processors/TFT_eSPI_ESP32.h
+3
-0
Processors/TFT_eSPI_ESP32_C3.h
Processors/TFT_eSPI_ESP32_C3.h
+3
-0
Processors/TFT_eSPI_ESP32_S3.h
Processors/TFT_eSPI_ESP32_S3.h
+3
-0
TFT_eSPI.cpp
TFT_eSPI.cpp
+3
-3
No files found.
Processors/TFT_eSPI_ESP32.h
View file @
67e41c75
...
...
@@ -158,6 +158,9 @@ SPI3_HOST = 2
#if (TFT_DC >= 0) && (TFT_DC < 32)
#define DC_C GPIO.out_w1tc = (1 << TFT_DC)
#define DC_D GPIO.out_w1ts = (1 << TFT_DC)
#elif (TFT_DC >= 32)
#define DC_C GPIO.out1_w1tc.val = (1 << (TFT_DC- 32))
#define DC_D GPIO.out1_w1ts.val = (1 << (TFT_DC- 32))
#else
#define DC_C
#define DC_D
...
...
Processors/TFT_eSPI_ESP32_C3.h
View file @
67e41c75
...
...
@@ -143,6 +143,9 @@ SPI3_HOST = 2
#if (TFT_DC >= 0) && (TFT_DC < 32)
#define DC_C GPIO.out_w1tc.val = (1 << TFT_DC)
#define DC_D GPIO.out_w1ts.val = (1 << TFT_DC)
#elif (TFT_DC >= 32)
#define DC_C GPIO.out_w1tc.val = (1 << (TFT_DC- 32))
#define DC_D GPIO.out_w1ts.val = (1 << (TFT_DC- 32))
#else
#define DC_C
#define DC_D
...
...
Processors/TFT_eSPI_ESP32_S3.h
View file @
67e41c75
...
...
@@ -166,6 +166,9 @@ SPI3_HOST = 2
#if (TFT_DC >= 0) && (TFT_DC < 32)
#define DC_C GPIO.out_w1tc = (1 << TFT_DC)
#define DC_D GPIO.out_w1ts = (1 << TFT_DC)
#elif (TFT_DC >= 32)
#define DC_C GPIO.out1_w1tc.val = (1 << (TFT_DC- 32))
#define DC_D GPIO.out1_w1ts.val = (1 << (TFT_DC- 32))
#else
#define DC_C
#define DC_D
...
...
TFT_eSPI.cpp
View file @
67e41c75
...
...
@@ -1070,7 +1070,7 @@ uint16_t TFT_eSPI::readPixel(int32_t x0, int32_t y0)
#if defined(TFT_PARALLEL_8_BIT) || defined(RP2040_PIO_INTERFACE)
if
(
!
inTransaction
)
CS_L
;
if (!inTransaction)
{ CS_L; } // CS_L can be multi-statement
readAddrWindow(x0, y0, 1, 1);
...
...
@@ -1090,7 +1090,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);
if
(
!
inTransaction
)
CS_H
;
if (!inTransaction)
{ CS_H; } // CS_H can be multi-statement
// Set masked pins D0- D7 to output
busDir(GPIO_DIR_MASK, OUTPUT);
...
...
@@ -1102,7 +1102,7 @@ uint16_t TFT_eSPI::readPixel(int32_t x0, int32_t y0)
// Fetch the 16 bit BRG pixel
uint16_t bgr = (readByte() << 8) | readByte();
if
(
!
inTransaction
)
CS_H
;
if (!inTransaction)
{ CS_H; } // CS_H can be multi-statement
// Set masked pins D0- D7 to output
busDir(GPIO_DIR_MASK, OUTPUT);
...
...
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