-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add GD32 support for all TFT Series (#2399)
Co-authored-by: bigtreetech.Alan <[email protected]>
- Loading branch information
Showing
7 changed files
with
376 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#ifndef _PIN_GD_TFT35_B1_V3_0_H_ // modify to actual filename !!! | ||
#define _PIN_GD_TFT35_B1_V3_0_H_ // modify to actual filename !!! | ||
|
||
// Hardware version config | ||
#ifndef HARDWARE_VERSION | ||
#define HARDWARE_VERSION "GD_TFT35_B1_V3.0" | ||
#endif | ||
|
||
#include "pin_GD_TFT35_V3_0.h" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#ifndef _PIN_GD_TFT43_V3_0_H_ // modify to actual filename !!! | ||
#define _PIN_GD_TFT43_V3_0_H_ // modify to actual filename !!! | ||
|
||
#ifndef TFT_RESOLUTION | ||
#define TFT_RESOLUTION | ||
#ifdef PORTRAIT_MODE | ||
#include "./Resolution/TFT_272X480.h" | ||
#else | ||
#include "./Resolution/TFT_480X272.h" | ||
#endif | ||
#endif | ||
|
||
// Update folder for fonts and icons | ||
#ifndef UPDATE_DIR | ||
#define UPDATE_DIR "TFT43" | ||
#endif | ||
|
||
// Hardware version config | ||
#ifndef HARDWARE_VERSION | ||
#define HARDWARE_VERSION "GD_TFT43_V3.0" | ||
#endif | ||
|
||
// LCD interface | ||
#ifndef TFTLCD_DRIVER | ||
#define TFTLCD_DRIVER SSD1963 // Type of LCD driver, now support[RM68042, ILI9488, ILI9341, ST7789, HX8558, SSD1963]. | ||
#define TFTLCD_DRIVER_SPEED 0x10 // SSD1963 needs slower speed | ||
#endif | ||
|
||
#ifndef SSD1963_LCD_PARA | ||
#define SSD1963_LCD_PARA | ||
#define SSD_DCLK_FREQUENCY 12 // 12Mhz | ||
|
||
#define SSD_HOR_PULSE_WIDTH 1 | ||
#define SSD_HOR_BACK_PORCH 43 | ||
#define SSD_HOR_FRONT_PORCH 2 | ||
|
||
#define SSD_VER_PULSE_WIDTH 1 | ||
#define SSD_VER_BACK_PORCH 12 | ||
#define SSD_VER_FRONT_PORCH 1 | ||
#endif | ||
|
||
#include "pin_GD_TFT35_V3_0.h" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#ifndef _PIN_GD_TFT50_V3_0_H_ // modify to actual filename !!! | ||
#define _PIN_GD_TFT50_V3_0_H_ // modify to actual filename !!! | ||
|
||
// Update folder for fonts and icons | ||
#ifndef UPDATE_DIR | ||
#define UPDATE_DIR "TFT50" | ||
#endif | ||
|
||
// Hardware version config | ||
#ifndef HARDWARE_VERSION | ||
#define HARDWARE_VERSION "GD_TFT50_V3.0" | ||
#endif | ||
|
||
#ifndef SSD1963_LCD_PARA | ||
#define SSD1963_LCD_PARA | ||
#define SSD_DCLK_FREQUENCY 9 // 9Mhz | ||
|
||
#define SSD_HOR_PULSE_WIDTH 1 | ||
#define SSD_HOR_BACK_PORCH 41 | ||
#define SSD_HOR_FRONT_PORCH 2 | ||
|
||
#define SSD_VER_PULSE_WIDTH 1 | ||
#define SSD_VER_BACK_PORCH 10 | ||
#define SSD_VER_FRONT_PORCH 2 | ||
#endif | ||
|
||
#include "pin_GD_TFT43_V3_0.h" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.