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
d28e4357
Commit
d28e4357
authored
Nov 02, 2019
by
Bodmer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #406
parent
d3a1eced
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
TFT_Drivers/ST7735_Rotation.h
TFT_Drivers/ST7735_Rotation.h
+2
-2
User_Setups/Setup43_ST7735.h
User_Setups/Setup43_ST7735.h
+11
-2
No files found.
TFT_Drivers/ST7735_Rotation.h
View file @
d28e4357
...
...
@@ -84,8 +84,8 @@
rowstart
=
0
;
}
else
if
(
tabcolor
==
INITR_GREENTAB160x80
)
{
writedata
(
TFT_MAD_BGR
);
colstart
=
0
;
rowstart
=
0
;
colstart
=
26
;
rowstart
=
1
;
}
else
if
(
tabcolor
==
INITR_REDTAB160x80
)
{
writedata
(
TFT_MAD_BGR
);
colstart
=
24
;
...
...
User_Setups/Setup43_ST7735.h
View file @
d28e4357
...
...
@@ -11,7 +11,7 @@
#define ST7735_GREENTAB160x80
#ifdef ESP32
#define TFT_MISO 19
#define TFT_MOSI 23
#define TFT_SCLK 18
...
...
@@ -19,7 +19,16 @@
#define TFT_DC 2 // Data Command control pin
#define TFT_RST 4 // Reset pin (could connect to RST pin)
//#define TFT_RST -1 // Set TFT_RST to -1 if display RESET is connected to ESP32 board RST
#else
// Display GND to NodeMCU pin GND (0V)
// Display VCC to NodeMCU 5V or 3.3V
// Display SCK to NodeMCU pin D5
// Display SDI/MOSI to NodeMCU pin D7
// Display BLK to NodeMCU pin VIN
#define TFT_CS PIN_D8 // Chip select control pin D8
#define TFT_DC PIN_D3 // Data Command control pin
#define TFT_RST PIN_D4 // Reset pin (could connect to NodeMCU RST, see next line)
#endif
#define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH
#define LOAD_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters
...
...
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