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
e17ad538
Commit
e17ad538
authored
Nov 24, 2021
by
bonaime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Setup for the ESP32 S2 with ST7789 display
parent
f60425d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
User_Setup_Select.h
User_Setup_Select.h
+2
-0
User_Setups/Setup71_ESP32_S2_ST7789.h
User_Setups/Setup71_ESP32_S2_ST7789.h
+29
-0
No files found.
User_Setup_Select.h
View file @
e17ad538
...
...
@@ -83,6 +83,8 @@
//#include <User_Setups/Setup70_ESP32_S2_ILI9341.h> // Setup file for ESP32 S2 with SPI ILI9341
//#include <User_Setups/Setup71_ESP32_S2_ST7789.h> // Setup file for ESP32 S2 with ST7789
//#include <User_Setups/Setup135_ST7789.h> // Setup file for ESP8266 and ST7789 135 x 240 TFT
//#include <User_Setups/Setup136_LilyGo_TTV.h> // Setup file for ESP32 and Lilygo TTV ST7789 SPI bus TFT 135x240
...
...
User_Setups/Setup71_ESP32_S2_ST7789.h
0 → 100644
View file @
e17ad538
// Setup for the ESP32 S2 with ILI9341 display
// Note SPI DMA with ESP32 S2 is not currently supported
// See SetupX_Template.h for all options available
#define ST7789_DRIVER // Configure all registers
#define TFT_CS 34 // 10 or 34
#define TFT_MOSI 35 // 11 or 35
#define TFT_SCLK 37 // 12 or 36
#define TFT_MISO 36 // 13 or 37
#define TFT_DC 33
#define TFT_RST -1
#define LOAD_GLCD
#define LOAD_FONT2
#define LOAD_FONT4
#define LOAD_FONT6
#define LOAD_FONT7
#define LOAD_FONT8
#define LOAD_GFXFF
#define SMOOTH_FONT
#define SPI_FREQUENCY 27000000
#define SPI_TOUCH_FREQUENCY 2500000
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