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
12f9ce86
Commit
12f9ce86
authored
Dec 04, 2021
by
Bodmer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Read_User_Setup example for RP2040
parent
84a69457
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
15 deletions
+8
-15
TFT_eSPI.h
TFT_eSPI.h
+1
-1
examples/Test and diagnostics/Read_User_Setup/Read_User_Setup.ino
.../Test and diagnostics/Read_User_Setup/Read_User_Setup.ino
+5
-12
library.json
library.json
+1
-1
library.properties
library.properties
+1
-1
No files found.
TFT_eSPI.h
View file @
12f9ce86
...
...
@@ -16,7 +16,7 @@
#ifndef _TFT_eSPIH_
#define _TFT_eSPIH_
#define TFT_ESPI_VERSION "2.3.8
4
"
#define TFT_ESPI_VERSION "2.3.8
5
"
// Bit level feature flags
// Bit 0 set: viewport capability
...
...
examples/Test and diagnostics/Read_User_Setup/Read_User_Setup.ino
View file @
12f9ce86
...
...
@@ -74,15 +74,9 @@ if (user.r2_y_offset != 0) { Serial.print("R2 y offset = "); Serial.println(us
if
(
user
.
r3_x_offset
!=
0
)
{
Serial
.
print
(
"R3 x offset = "
);
Serial
.
println
(
user
.
r3_x_offset
);
}
if
(
user
.
r3_y_offset
!=
0
)
{
Serial
.
print
(
"R3 y offset = "
);
Serial
.
println
(
user
.
r3_y_offset
);
}
#ifdef ESP32
if
(
user
.
pin_tft_mosi
!=
-
1
)
{
Serial
.
print
(
"MOSI = "
);
Serial
.
print
(
"GPIO "
);
Serial
.
println
(
user
.
pin_tft_mosi
);
}
if
(
user
.
pin_tft_miso
!=
-
1
)
{
Serial
.
print
(
"MISO = "
);
Serial
.
print
(
"GPIO "
);
Serial
.
println
(
user
.
pin_tft_miso
);
}
if
(
user
.
pin_tft_clk
!=
-
1
)
{
Serial
.
print
(
"SCK = "
);
Serial
.
print
(
"GPIO "
);
Serial
.
println
(
user
.
pin_tft_clk
);
}
#else
if
(
user
.
pin_tft_mosi
!=
-
1
)
{
Serial
.
print
(
"MOSI = "
);
Serial
.
print
(
"GPIO "
);
Serial
.
print
(
getPinName
(
user
.
pin_tft_mosi
));
Serial
.
println
(
user
.
pin_tft_mosi
);
}
if
(
user
.
pin_tft_miso
!=
-
1
)
{
Serial
.
print
(
"MISO = "
);
Serial
.
print
(
"GPIO "
);
Serial
.
print
(
getPinName
(
user
.
pin_tft_miso
));
Serial
.
println
(
user
.
pin_tft_miso
);
}
if
(
user
.
pin_tft_clk
!=
-
1
)
{
Serial
.
print
(
"SCK = "
);
Serial
.
print
(
"GPIO "
);
Serial
.
print
(
getPinName
(
user
.
pin_tft_clk
));
Serial
.
println
(
user
.
pin_tft_clk
);
}
#endif
if
(
user
.
pin_tft_mosi
!=
-
1
)
{
Serial
.
print
(
"MOSI = "
);
Serial
.
print
(
"GPIO "
);
Serial
.
println
(
getPinName
(
user
.
pin_tft_mosi
));
}
if
(
user
.
pin_tft_miso
!=
-
1
)
{
Serial
.
print
(
"MISO = "
);
Serial
.
print
(
"GPIO "
);
Serial
.
println
(
getPinName
(
user
.
pin_tft_miso
));
}
if
(
user
.
pin_tft_clk
!=
-
1
)
{
Serial
.
print
(
"SCK = "
);
Serial
.
print
(
"GPIO "
);
Serial
.
println
(
getPinName
(
user
.
pin_tft_clk
));
}
#ifdef ESP8266
if
(
user
.
overlap
==
true
)
...
...
@@ -150,8 +144,7 @@ if (user.pin_tch_cs != -1) { Serial.print("Touch SPI frequency = "); Serial.pr
Serial
.
println
(
"[/code]"
);
while
(
1
)
yield
();
delay
(
3000
);
}
void
printProcessorName
(
void
)
...
...
@@ -167,7 +160,7 @@ void printProcessorName(void)
int8_t
getPinName
(
int8_t
pin
)
{
// For ESP32 pin labels on boards use the GPIO number
if
(
user
.
esp
==
0x32
)
return
pin
;
if
(
user
.
esp
==
0x32
||
user
.
esp
==
0x2040
)
return
pin
;
if
(
user
.
esp
==
0x8266
)
{
// For ESP8266 the pin labels are not the same as the GPIO number
...
...
library.json
View file @
12f9ce86
{
"name"
:
"TFT_eSPI"
,
"version"
:
"2.3.8
4
"
,
"version"
:
"2.3.8
5
"
,
"keywords"
:
"Arduino, tft, ePaper, display, Pico, RP2040, STM32, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9481, ILI9486, ILI9488, ST7789, RM68140, SSD1351, SSD1963, ILI9225, HX8357D"
,
"description"
:
"A TFT and ePaper SPI graphics library with optimisation for Raspberry Pi Pico, ESP8266, ESP32 and STM32"
,
"repository"
:
...
...
library.properties
View file @
12f9ce86
name
=
TFT_eSPI
version
=
2.3.8
4
version
=
2.3.8
5
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