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
9418a61b
Commit
9418a61b
authored
Apr 26, 2023
by
Bodmer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix inline issue with some processors
Remove inline Other tweaks for compatibility
parent
18e37ca0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
7 deletions
+13
-7
TFT_eSPI.h
TFT_eSPI.h
+1
-1
Tools/Create_Smooth_Font/Create_font/Create_font.pde
Tools/Create_Smooth_Font/Create_font/Create_font.pde
+1
-1
Tools/Create_Smooth_Font/Create_font/FontFiles/Final-Frontier28.vlw
...te_Smooth_Font/Create_font/FontFiles/Final-Frontier28.vlw
+0
-0
User_Setup.h
User_Setup.h
+11
-5
No files found.
TFT_eSPI.h
View file @
9418a61b
...
@@ -731,7 +731,7 @@ class TFT_eSPI : public Print { friend class TFT_eSprite; // Sprite class has ac
...
@@ -731,7 +731,7 @@ class TFT_eSPI : public Print { friend class TFT_eSprite; // Sprite class has ac
// Alpha blend 2 colours, see generic "alphaBlend_Test" example
// Alpha blend 2 colours, see generic "alphaBlend_Test" example
// alpha = 0 = 100% background colour
// alpha = 0 = 100% background colour
// alpha = 255 = 100% foreground colour
// alpha = 255 = 100% foreground colour
inline
uint16_t
alphaBlend
(
uint8_t
alpha
,
uint16_t
fgc
,
uint16_t
bgc
);
uint16_t
alphaBlend
(
uint8_t
alpha
,
uint16_t
fgc
,
uint16_t
bgc
);
// 16 bit colour alphaBlend with alpha dither (dither reduces colour banding)
// 16 bit colour alphaBlend with alpha dither (dither reduces colour banding)
uint16_t
alphaBlend
(
uint8_t
alpha
,
uint16_t
fgc
,
uint16_t
bgc
,
uint8_t
dither
);
uint16_t
alphaBlend
(
uint8_t
alpha
,
uint16_t
fgc
,
uint16_t
bgc
,
uint8_t
dither
);
// 24 bit colour alphaBlend with optional alpha dither
// 24 bit colour alphaBlend with optional alpha dither
...
...
Tools/Create_Smooth_Font/Create_font/Create_font.pde
View file @
9418a61b
...
@@ -143,7 +143,7 @@ int displayFontSize = 28;
...
@@ -143,7 +143,7 @@ int displayFontSize = 28;
boolean
createHeaderFile
=
true
;
boolean
createHeaderFile
=
true
;
// Automaticely open the folder with created files when done
// Automaticely open the folder with created files when done
boolean
openFolder
=
fals
e
;
boolean
openFolder
=
tru
e
;
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Next we specify which unicode blocks from the the Basic Multilingual Plane (BMP) are included in the final font file. //
// Next we specify which unicode blocks from the the Basic Multilingual Plane (BMP) are included in the final font file. //
...
...
Tools/Create_Smooth_Font/Create_font/FontFiles/Final-Frontier28.vlw
deleted
100644 → 0
View file @
18e37ca0
File deleted
User_Setup.h
View file @
9418a61b
...
@@ -84,6 +84,7 @@
...
@@ -84,6 +84,7 @@
// #define TFT_WIDTH 80
// #define TFT_WIDTH 80
// #define TFT_WIDTH 128
// #define TFT_WIDTH 128
// #define TFT_WIDTH 172 // ST7789 172 x 320
// #define TFT_WIDTH 172 // ST7789 172 x 320
// #define TFT_WIDTH 170 // ST7789 170 x 320
// #define TFT_WIDTH 240 // ST7789 240 x 240 and 240 x 320
// #define TFT_WIDTH 240 // ST7789 240 x 240 and 240 x 320
// #define TFT_HEIGHT 160
// #define TFT_HEIGHT 160
// #define TFT_HEIGHT 128
// #define TFT_HEIGHT 128
...
@@ -166,10 +167,15 @@
...
@@ -166,10 +167,15 @@
// ###### EDIT THE PIN NUMBERS IN THE LINES FOLLOWING TO SUIT YOUR ESP8266 SETUP ######
// ###### EDIT THE PIN NUMBERS IN THE LINES FOLLOWING TO SUIT YOUR ESP8266 SETUP ######
// For NodeMCU - use pin numbers in the form PIN_Dx where Dx is the NodeMCU pin designation
// For NodeMCU - use pin numbers in the form PIN_Dx where Dx is the NodeMCU pin designation
#define TFT_CS PIN_D8 // Chip select control pin D8
#define TFT_MISO PIN_D6 // Automatically assigned with ESP8266 if not defined
#define TFT_DC PIN_D3 // Data Command control pin
#define TFT_MOSI PIN_D7 // Automatically assigned with ESP8266 if not defined
#define TFT_RST PIN_D4 // Reset pin (could connect to NodeMCU RST, see next line)
#define TFT_SCLK PIN_D5 // Automatically assigned with ESP8266 if not defined
//#define TFT_RST -1 // Set TFT_RST to -1 if the display RESET is connected to NodeMCU RST or 3.3V
#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)
//#define TFT_RST -1 // Set TFT_RST to -1 if the display RESET is connected to NodeMCU RST or 3.3V
//#define TFT_BL PIN_D1 // LED back-light (only for ST7789 with backlight control pin)
//#define TFT_BL PIN_D1 // LED back-light (only for ST7789 with backlight control pin)
...
@@ -327,7 +333,7 @@
...
@@ -327,7 +333,7 @@
// For RP2040 processor and 8 or 16 bit parallel displays:
// For RP2040 processor and 8 or 16 bit parallel displays:
// The parallel interface write cycle period is derived from a division of the CPU clock
// The parallel interface write cycle period is derived from a division of the CPU clock
// speed so scales with the processor clock. This means that the divider ratio may need
// speed so scales with the processor clock. This means that the divider ratio may need
// to be increased when overclocking. I may also need to be adjusted dependant on the
// to be increased when overclocking. I
t
may also need to be adjusted dependant on the
// display controller type (ILI94341, HX8357C etc). If RP2040_PIO_CLK_DIV is not defined
// display controller type (ILI94341, HX8357C etc). If RP2040_PIO_CLK_DIV is not defined
// the library will set default values which may not suit your display.
// the library will set default values which may not suit your display.
// The display controller data sheet will specify the minimum write cycle period. The
// The display controller data sheet will specify the minimum write cycle period. The
...
...
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