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
14ff368d
Commit
14ff368d
authored
Feb 02, 2022
by
Dr. Stefan Labich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added USE_FSPI_PORT flag to support more ESP32-S2 boards
parent
32d99142
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
Processors/TFT_eSPI_ESP32.c
Processors/TFT_eSPI_ESP32.c
+7
-3
Processors/TFT_eSPI_ESP32.h
Processors/TFT_eSPI_ESP32.h
+2
-0
No files found.
Processors/TFT_eSPI_ESP32.c
View file @
14ff368d
...
...
@@ -11,16 +11,18 @@
#ifdef CONFIG_IDF_TARGET_ESP32
#ifdef USE_HSPI_PORT
SPIClass
spi
=
SPIClass
(
HSPI
);
#elif defined(USE_FSPI_PORT)
SPIClass
spi
=
SPIClass
(
FSPI
);
#else // use default VSPI port
//SPIClass& spi = SPI;
SPIClass
spi
=
SPIClass
(
VSPI
);
#endif
#else
#ifdef USE_HSPI_PORT
SPIClass
spi
=
SPIClass
(
HSPI
);
#else // use FSPI port
//SPIClass& spi = SPI;
#elif defined(USE_FSPI_PORT)
SPIClass
spi
=
SPIClass
(
FSPI
);
#else // use FSPI port
SPIClass
&
spi
=
SPI
;
#endif
#endif
#endif
...
...
@@ -32,6 +34,8 @@
#define DMA_CHANNEL 1
#ifdef USE_HSPI_PORT
spi_host_device_t
spi_host
=
HSPI_HOST
;
#elif defined(USE_FSPI_PORT)
spi_host_device_t
spi_host
=
SPI_HOST
;
#else // use VSPI port
spi_host_device_t
spi_host
=
VSPI_HOST
;
#endif
...
...
Processors/TFT_eSPI_ESP32.h
View file @
14ff368d
...
...
@@ -67,6 +67,8 @@ SPI3_HOST = 2
#else
#define SPI_PORT 3 //HSPI is port 3 on ESP32 S2
#endif
#elif defined(USE_FSPI_PORT)
#define SPI_PORT 2 //FSPI(ESP32 S2)
#else
#ifdef CONFIG_IDF_TARGET_ESP32
#define SPI_PORT VSPI
...
...
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