Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add GD32 support for all TFT Series #2399

Merged
merged 1 commit into from
Feb 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 25 additions & 17 deletions .github/workflows/buildBinary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -U platformio
- name: Build TFT24 V1.1
run: platformio run --environment BIGTREE_TFT24_V1_1
- name: Build TFT28 V1.0
run: platformio run --environment BIGTREE_TFT28_V1_0
- name: Build TFT28 V3.0
run: platformio run --environment BIGTREE_TFT28_V3_0
- name: Build TFT35 V1.0
run: platformio run --environment BIGTREE_TFT35_V1_0
- name: Build TFT35 V1.1
Expand All @@ -34,16 +40,10 @@ jobs:
run: platformio run --environment BIGTREE_TFT35_V1_2
- name: Build TFT35 V2.0
run: platformio run --environment BIGTREE_TFT35_V2_0
- name: Build GD_TFT35 V2.0
run: platformio run --environment BIGTREE_GD_TFT35_V2_0
- name: Build TFT35 V3.0
run: platformio run --environment BIGTREE_TFT35_V3_0
- name: Build GD TFT35 V3.0
run: platformio run --environment BIGTREE_GD_TFT35_V3_0
- name: Build TFT35 E3 V3.0
run: platformio run --environment BIGTREE_TFT35_E3_V3_0
- name: Build GD TFT35 E3 V3.0
run: platformio run --environment BIGTREE_GD_TFT35_E3_V3_0
- name: Build TFT35 B1 V3.0
run: platformio run --environment BIGTREE_TFT35_B1_V3_0
- name: Build TFT43 V3.0
Expand All @@ -52,25 +52,33 @@ jobs:
run: platformio run --environment BIGTREE_TFT50_V3_0
- name: Build TFT70 V3.0
run: platformio run --environment BIGTREE_TFT70_V3_0
- name: Build TFT28 V1.0
run: platformio run --environment BIGTREE_TFT28_V1_0
- name: Build TFT28 V3.0
run: platformio run --environment BIGTREE_TFT28_V3_0
- name: Build TFT24 V1.1
run: platformio run --environment BIGTREE_TFT24_V1_1
- name: Build GD_TFT24 V1.1
run: platformio run --environment BIGTREE_GD_TFT24_V1_1
- name: Build GD_TFT35 V2.0
run: platformio run --environment BIGTREE_GD_TFT35_V2_0
- name: Build GD TFT35 V3.0
run: platformio run --environment BIGTREE_GD_TFT35_V3_0
- name: Build GD TFT35 E3 V3.0
run: platformio run --environment BIGTREE_GD_TFT35_E3_V3_0
- name: Build GD TFT35 B1 V3.0
run: platformio run --environment BIGTREE_GD_TFT35_B1_V3_0
- name: Build GD TFT43 V3.0
run: platformio run --environment BIGTREE_GD_TFT43_V3_0
- name: Build GD TFT50 V3.0
run: platformio run --environment BIGTREE_GD_TFT50_V3_0
- name: Build GD TFT70 V3.0
run: platformio run --environment BIGTREE_GD_TFT70_V3_0
- name: Build MKS TFT28 V3.0
run: platformio run --environment MKS_TFT28_V3_0
- name: Build MKS TFT28 V4.0
run: platformio run --environment MKS_TFT28_V4_0
- name: Build MKS TFT28 New Genius
- name: Build MKS TFT32 V1.3
run: platformio run --environment MKS_TFT32_V1_3
- name: Build MKS TFT32 V1.4
run: platformio run --environment MKS_TFT32_V1_4
- name: Build MKS TFT32 V1.4 No Bootloader
run: platformio run --environment MKS_TFT32_V1_4_NOBL
- name: Build MKS TFT28 V3.0
run: platformio run --environment MKS_TFT28_V3_0
- name: Build MKS TFT28 V4.0
run: platformio run --environment MKS_TFT28_V4_0
- name: Build MKS TFT28 New Genius
run: platformio run --environment MKS_TFT28_NEW_GENIUS
- name: Remove Old Binaries
run: find "Copy to SD Card root directory to update/" -name '*.bin' -print -delete
Expand Down
44 changes: 26 additions & 18 deletions .github/workflows/buildTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -U platformio
- name: Build TFT24 V1.1
run: platformio run --environment BIGTREE_TFT24_V1_1
- name: Build TFT28 V1.0
run: platformio run --environment BIGTREE_TFT28_V1_0
- name: Build TFT28 V3.0
run: platformio run --environment BIGTREE_TFT28_V3_0
- name: Build TFT35 V1.0
run: platformio run --environment BIGTREE_TFT35_V1_0
- name: Build TFT35 V1.1
Expand All @@ -38,16 +44,10 @@ jobs:
run: platformio run --environment BIGTREE_TFT35_V1_2
- name: Build TFT35 V2.0
run: platformio run --environment BIGTREE_TFT35_V2_0
- name: Build GD_TFT35 V2.0
run: platformio run --environment BIGTREE_GD_TFT35_V2_0
- name: Build TFT35 V3.0
run: platformio run --environment BIGTREE_TFT35_V3_0
- name: Build GD TFT35 V3.0
run: platformio run --environment BIGTREE_GD_TFT35_V3_0
- name: Build TFT35 E3 V3.0
run: platformio run --environment BIGTREE_TFT35_E3_V3_0
- name: Build GD TFT35 E3 V3.0
run: platformio run --environment BIGTREE_GD_TFT35_E3_V3_0
- name: Build TFT35 B1 V3.0
run: platformio run --environment BIGTREE_TFT35_B1_V3_0
- name: Build TFT43 V3.0
Expand All @@ -56,21 +56,29 @@ jobs:
run: platformio run --environment BIGTREE_TFT50_V3_0
- name: Build TFT70 V3.0
run: platformio run --environment BIGTREE_TFT70_V3_0
- name: Build TFT28 V1.0
run: platformio run --environment BIGTREE_TFT28_V1_0
- name: Build TFT28 V3.0
run: platformio run --environment BIGTREE_TFT28_V3_0
- name: Build TFT24 V1.1
run: platformio run --environment BIGTREE_TFT24_V1_1
- name: Build MKS TFT32 V1.3
run: platformio run --environment MKS_TFT32_V1_3
- name: Build MKS TFT32 V1.4
run: platformio run --environment MKS_TFT32_V1_4
- name: Build MKS TFT32 V1.4 No Bootloader
run: platformio run --environment MKS_TFT32_V1_4_NOBL
- name: Build GD_TFT35 V2.0
run: platformio run --environment BIGTREE_GD_TFT35_V2_0
- name: Build GD TFT35 V3.0
run: platformio run --environment BIGTREE_GD_TFT35_V3_0
- name: Build GD TFT35 E3 V3.0
run: platformio run --environment BIGTREE_GD_TFT35_E3_V3_0
- name: Build GD TFT35 B1 V3.0
run: platformio run --environment BIGTREE_GD_TFT35_B1_V3_0
- name: Build GD TFT43 V3.0
run: platformio run --environment BIGTREE_GD_TFT43_V3_0
- name: Build GD TFT50 V3.0
run: platformio run --environment BIGTREE_GD_TFT50_V3_0
- name: Build GD TFT70 V3.0
run: platformio run --environment BIGTREE_GD_TFT70_V3_0
- name: Build MKS TFT28 V3.0
run: platformio run --environment MKS_TFT28_V3_0
- name: Build MKS TFT28 V4.0
run: platformio run --environment MKS_TFT28_V4_0
- name: Build MKS TFT28 New Genius
run: platformio run --environment MKS_TFT28_NEW_GENIUS
- name: Build MKS TFT32 V1.3
run: platformio run --environment MKS_TFT32_V1_3
- name: Build MKS TFT32 V1.4
run: platformio run --environment MKS_TFT32_V1_4
- name: Build MKS TFT32 V1.4 No Bootloader
run: platformio run --environment MKS_TFT32_V1_4_NOBL
11 changes: 11 additions & 0 deletions TFT/src/User/Variants/pin_GD_TFT35_B1_V3_0.h
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
44 changes: 44 additions & 0 deletions TFT/src/User/Variants/pin_GD_TFT43_V3_0.h
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
29 changes: 29 additions & 0 deletions TFT/src/User/Variants/pin_GD_TFT50_V3_0.h
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
22 changes: 14 additions & 8 deletions TFT/src/User/Variants/variants.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,26 @@
#include "pin_TFT35_V2_0.h"
#elif defined(TFT35_V3_0)
#include "pin_TFT35_V3_0.h"
#elif defined(GD_TFT35_V3_0)
#include "pin_GD_TFT35_V3_0.h"
#elif defined(GD_TFT35_E3_V3_0)
#include "pin_GD_TFT35_E3_V3_0.h"
#elif defined(TFT35_E3_V3_0)
#include "pin_TFT35_E3_V3_0.h"
#elif defined(TFT35_B1_V3_0)
#include "pin_TFT35_B1_V3_0.h"
#elif defined(TFT43_V3_0)
#include "pin_TFT43_V3_0.h"
#elif defined(TFT50_V3_0)
#include "pin_TFT50_V3_0.h"
#elif defined(TFT70_V3_0)
#include "pin_TFT70_V3_0.h"
#elif defined(TFT35_E3_V3_0)
#include "pin_TFT35_E3_V3_0.h"
#elif defined(TFT35_B1_V3_0)
#include "pin_TFT35_B1_V3_0.h"
#elif defined(GD_TFT35_V3_0)
#include "pin_GD_TFT35_V3_0.h"
#elif defined(GD_TFT35_E3_V3_0)
#include "pin_GD_TFT35_E3_V3_0.h"
#elif defined(GD_TFT35_B1_V3_0)
#include "pin_GD_TFT35_B1_V3_0.h"
#elif defined(GD_TFT43_V3_0)
#include "pin_GD_TFT43_V3_0.h"
#elif defined(GD_TFT50_V3_0)
#include "pin_GD_TFT50_V3_0.h"
#elif defined(MKS_TFT32_V1_3)
#include "pin_MKS_TFT32_V1_3.h"
#elif defined(MKS_TFT32_V1_4)
Expand Down
Loading