Update for spelling etc. in comments!
This commit is contained in:
1 parent
aefcf5af63
commit
d506a3c49d
197 files changed
+1006
-757
No files matched your search
@@ -0,0 +1,47 @@
|
||||
// For sprite only functionality (untested)
|
||||
#define USER_SETUP_ID 0
|
||||
|
||||
#define TFT_WIDTH 1000
|
||||
#define TFT_HEIGHT 1000
|
||||
|
||||
#define TFT_INIT_DELAY 0
|
||||
|
||||
#define TFT_NOP 0x00
|
||||
#define TFT_SWRST 0x00
|
||||
|
||||
#define TFT_CASET 0x00
|
||||
#define TFT_PASET 0x00
|
||||
#define TFT_RAMWR 0x00
|
||||
|
||||
#define TFT_RAMRD 0x00
|
||||
#define TFT_IDXRD 0x00
|
||||
|
||||
/*
|
||||
#define TFT_MADCTL 0x00
|
||||
#define TFT_MAD_MY 0x00
|
||||
#define TFT_MAD_MX 0x00
|
||||
#define TFT_MAD_MV 0x00
|
||||
#define TFT_MAD_ML 0x00
|
||||
#define TFT_MAD_BGR 0x00
|
||||
#define TFT_MAD_MH 0x00
|
||||
#define TFT_MAD_RGB 0x00
|
||||
*/
|
||||
#define TFT_INVOFF 0x00
|
||||
#define TFT_INVON 0x00
|
||||
|
||||
|
||||
#define TFT_MISO -1
|
||||
#define TFT_MOSI -1
|
||||
#define TFT_SCLK -1
|
||||
|
||||
|
||||
#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
|
||||
#define LOAD_FONT4 // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters
|
||||
#define LOAD_FONT6 // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm
|
||||
#define LOAD_FONT7 // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:-.
|
||||
#define LOAD_FONT8 // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-.
|
||||
//#define LOAD_FONT8N // Font 8. Alternative to Font 8 above, slightly narrower, so 3 digits fit a 160 pixel TFT
|
||||
#define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts
|
||||
|
||||
#define SMOOTH_FONT
|
||||
@@ -1,4 +1,4 @@
|
||||
// This setup is for the RP2040 processor only when used with 8 bit parallel displays
|
||||
// This setup is for the RP2040 processor only when used with 8-bit parallel displays
|
||||
// See SetupX_Template.h for all options available
|
||||
#define USER_SETUP_ID 100
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// This setup is for the RP2040 processor only when used with 8 bit parallel displays
|
||||
// This setup is for the RP2040 processor only when used with 8-bit parallel displays
|
||||
// See SetupX_Template.h for all options available
|
||||
#define USER_SETUP_ID 101
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// This setup is for the RP2040 processor only when used with 8 bit parallel displays
|
||||
// This setup is for the RP2040 processor only when used with 8-bit parallel displays
|
||||
// See SetupX_Template.h for all options available
|
||||
#define USER_SETUP_ID 102
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// This setup is for the RP2040 processor only when used with 8 bit parallel displays
|
||||
// This setup is for the RP2040 processor only when used with 8-bit parallel displays
|
||||
// See SetupX_Template.h for all options available
|
||||
#define USER_SETUP_ID 103
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// This setup is for the RP2040 processor only when used with 8 bit parallel displays
|
||||
// This setup is for the RP2040 processor only when used with 8-bit parallel displays
|
||||
// See SetupX_Template.h for all options available
|
||||
#define USER_SETUP_ID 104
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// This setup is for the RP2040 processor only when used with 8 bit parallel displays
|
||||
// This setup is for the RP2040 processor only when used with 8-bit parallel displays
|
||||
// See SetupX_Template.h for all options available
|
||||
#define USER_SETUP_ID 105
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// This setup is for the RP2040 processor when used with 8 bit parallel displays
|
||||
// This setup is for the RP2040 processor when used with 8-bit parallel displays
|
||||
// See SetupX_Template.h for all options available
|
||||
#define USER_SETUP_ID 106
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
// 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
|
||||
// to be increased when overclocking. I 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 display controller data sheet will specify the minimum write cycle period. The
|
||||
// controllers often work reliably for shorter periods, however if the period is too short
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// This setup is for the RP2040 processor only when used with 8 bit parallel displays
|
||||
// This setup is for the RP2040 processor only when used with 8-bit parallel displays
|
||||
// See SetupX_Template.h for all options available
|
||||
#define USER_SETUP_ID 107
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// USER DEFINED SETTINGS
|
||||
// Set driver type, fonts to be loaded, pins used and SPI control method etc
|
||||
// Set driver type, fonts to be loaded, pins used and SPI control method etc.
|
||||
//
|
||||
// See the User_Setup_Select.h file if you wish to be able to define multiple
|
||||
// setups and then easily select which setup file is used by the compiler.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// USER DEFINED SETTINGS
|
||||
// Set driver type, fonts to be loaded, pins used and SPI control method etc
|
||||
// Set driver type, fonts to be loaded, pins used and SPI control method etc.
|
||||
//
|
||||
// See the User_Setup_Select.h file if you wish to be able to define multiple
|
||||
// setups and then easily select which setup file is used by the compiler.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// USER DEFINED SETTINGS
|
||||
// Set driver type, fonts to be loaded, pins used and SPI control method etc
|
||||
// Set driver type, fonts to be loaded, pins used and SPI control method etc.
|
||||
//
|
||||
// See the User_Setup_Select.h file if you wish to be able to define multiple
|
||||
// setups and then easily select which setup file is used by the compiler.
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
#define SMOOTH_FONT
|
||||
|
||||
|
||||
// Nucleo-F767ZI has a ~216MHZ CPU clock, this is divided by 4, 8, 16 etc
|
||||
// Nucleo-F767ZI has a ~216MHZ CPU clock, this is divided by 4, 8, 16 etc.
|
||||
|
||||
#define SPI_FREQUENCY 27000000 // 27MHz SPI clock
|
||||
//#define SPI_FREQUENCY 55000000 // 55MHz is over-clocking ILI9341 but seems to work reliably!
|
||||
|
||||
@@ -0,0 +1,141 @@
|
||||
|
||||
#define STM32
|
||||
|
||||
#define NUCLEO_64_TFT
|
||||
//#define TFT_INVERSION_OFF
|
||||
|
||||
#define TFT_WIDTH 240
|
||||
#define TFT_HEIGHT 320
|
||||
|
||||
#define ST7789_DRIVER
|
||||
#define TFT_RGB_ORDER TFT_BGR
|
||||
|
||||
#define TFT_SPI_PORT 1 // SPI 1 maximum clock rate is 55MHz
|
||||
#define TFT_MOSI D11
|
||||
#define TFT_MISO D12
|
||||
#define TFT_SCLK D13
|
||||
|
||||
|
||||
// Can use Ardiuno pin references, arbitrary allocation, TFT_eSPI controls chip select
|
||||
#define TFT_CS D5 // Chip select control pin to TFT CS
|
||||
#define TFT_DC D6 // Data Command control pin to TFT DC (may be labelled RS = Register Select)
|
||||
#define TFT_RST D7 // Reset pin to TFT RST (or RESET)
|
||||
|
||||
#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
|
||||
#define LOAD_FONT4 // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters
|
||||
#define LOAD_FONT6 // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm
|
||||
#define LOAD_FONT7 // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:-.
|
||||
#define LOAD_FONT8 // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-.
|
||||
#define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts
|
||||
|
||||
// STM32 support for smooth fonts via program memory (FLASH) arrays
|
||||
#define SMOOTH_FONT
|
||||
|
||||
#define SPI_FREQUENCY 55000000 // 27MHz SPI clock
|
||||
//#define SPI_FREQUENCY 55000000 // 55MHz is over-clocking ILI9341 but seems to work reliably!
|
||||
|
||||
#define SPI_READ_FREQUENCY 15000000 // Reads need a slower SPI clock, probably ends up at 13.75MHz (CPU clock/16)
|
||||
|
||||
// This has no effect, transactions for STM32 are automatically enabled
|
||||
#define SUPPORT_TRANSACTIONS
|
||||
|
||||
/*
|
||||
///////////////////////////////////////////////////
|
||||
// Setup for STM32 Nucleo and ILI9341 display //
|
||||
///////////////////////////////////////////////////
|
||||
#define USER_SETUP_ID 29
|
||||
|
||||
// Last update by Bodmer: 28/11/19
|
||||
|
||||
// STM32 optimised functions are not yet compatible with STM32H743 processor.
|
||||
// The STM32H743 does work with the slower generic processor drivers
|
||||
//
|
||||
// REMINDER - Nucleo-F743ZI and Nucleo-F743ZI2 have different pin port allocations
|
||||
// and require appropriate selection in IDE. ^---- Note the extra 2 in part number!
|
||||
|
||||
|
||||
// Define STM32 to invoke STM32 optimised driver
|
||||
#define STM32
|
||||
|
||||
// Define the TFT display driver
|
||||
//#define ILI9341_DRIVER
|
||||
//#define ILI9481_DRIVER
|
||||
#define ST7789_DRIVER
|
||||
#define TFT_RGB_ORDER TFT_BGR
|
||||
// MOSI and SCK do not need to be defined, connect:
|
||||
// - Arduino SCK to TFT SCK
|
||||
// - Arduino MOSI to TFT SDI(may be marked SDA or MOSI)
|
||||
// Typical Arduino SPI port 1 pins are (SCK=D13, MISO=D12, MOSI=D11) this is port pins PA5, PA6 and PA7 on Nucleo-F767ZI
|
||||
// SPI port 2 pins are (SCK=D18, MISO=A7, MOSI=D17) this is port pins PB13, PC2 and PB15 on Nucleo-F767ZI
|
||||
|
||||
//*
|
||||
#define TFT_SPI_PORT 1 // SPI 1 maximum clock rate is 55MHz
|
||||
#define TFT_MOSI PA7
|
||||
#define TFT_MISO PA6
|
||||
#define TFT_SCLK PA5
|
||||
//*/
|
||||
|
||||
/*
|
||||
#define TFT_SPI_PORT 2 // SPI 2 maximum clock rate is 27MHz
|
||||
#define TFT_MOSI D17
|
||||
#define TFT_MISO A7
|
||||
#define TFT_SCLK D18
|
||||
//*/
|
||||
|
||||
/*
|
||||
#define TFT_SPI_PORT 2 // SPI 2 maximum clock rate is 27MHz
|
||||
#define TFT_MOSI PB15
|
||||
#define TFT_MISO PC2
|
||||
#define TFT_SCLK PB13
|
||||
//*/
|
||||
|
||||
/*
|
||||
#define TFT_SPI_PORT 2 // SPI 2 maximum clock rate is 27MHz
|
||||
#define TFT_MOSI PB15
|
||||
#define TFT_MISO PB14
|
||||
#define TFT_SCLK PB13
|
||||
//*/
|
||||
|
||||
/*
|
||||
// Can use Ardiuno pin references, arbitrary allocation, TFT_eSPI controls chip select
|
||||
#define TFT_CS D5 // Chip select control pin to TFT CS
|
||||
#define TFT_DC D6 // Data Command control pin to TFT DC (may be labelled RS = Register Select)
|
||||
#define TFT_RST D7 // Reset pin to TFT RST (or RESET)
|
||||
|
||||
// Alternatively, we can use STM32 port reference names PXnn
|
||||
//#define TFT_CS PE11 // Nucleo-F767ZI equivalent of D5
|
||||
//#define TFT_DC PE9 // Nucleo-F767ZI equivalent of D6
|
||||
//#define TFT_RST PF13 // Nucleo-F767ZI equivalent of D7
|
||||
|
||||
//#define TFT_RST -1 // Set TFT_RST to -1 if the display RESET is connected to processor reset
|
||||
// Use an Arduino pin for initial testing as connecting to processor reset
|
||||
// may not work (pulse too short at power up?)
|
||||
|
||||
// Chip select for XPT2046 touch controller
|
||||
#define TOUCH_CS D4
|
||||
|
||||
#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
|
||||
#define LOAD_FONT4 // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters
|
||||
#define LOAD_FONT6 // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm
|
||||
#define LOAD_FONT7 // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:-.
|
||||
#define LOAD_FONT8 // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-.
|
||||
#define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts
|
||||
|
||||
// STM32 support for smooth fonts via program memory (FLASH) arrays
|
||||
#define SMOOTH_FONT
|
||||
|
||||
|
||||
// Nucleo-F767ZI has a ~216MHZ CPU clock, this is divided by 4, 8, 16 etc.
|
||||
|
||||
#define SPI_FREQUENCY 27000000 // 27MHz SPI clock
|
||||
//#define SPI_FREQUENCY 55000000 // 55MHz is over-clocking ILI9341 but seems to work reliably!
|
||||
|
||||
#define SPI_READ_FREQUENCY 15000000 // Reads need a slower SPI clock, probably ends up at 13.75MHz (CPU clock/16)
|
||||
|
||||
#define SPI_TOUCH_FREQUENCY 2500000 // Must be very slow
|
||||
|
||||
// This has no effect, transactions for STM32 are automatically enabled
|
||||
#define SUPPORT_TRANSACTIONS
|
||||
*/
|
||||
@@ -14,7 +14,7 @@
|
||||
#define NUCLEO_64_TFT
|
||||
//#define NUCLEO_144_TFT
|
||||
|
||||
// Tell the library to use 8 bit parallel mode (otherwise SPI is assumed)
|
||||
// Tell the library to use 8-bit parallel mode (otherwise SPI is assumed)
|
||||
#define TFT_PARALLEL_8_BIT
|
||||
|
||||
// Define the display driver chip type
|
||||
@@ -31,7 +31,7 @@
|
||||
#define TFT_WR A1 // Write strobe control pin
|
||||
#define TFT_RD A0 // Read pin
|
||||
|
||||
#define TFT_D0 D8 // 8 bit parallel bus to TFT
|
||||
#define TFT_D0 D8 // 8-bit parallel bus to TFT
|
||||
#define TFT_D1 D9
|
||||
#define TFT_D2 D2
|
||||
#define TFT_D3 D3
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#define NUCLEO_64_TFT
|
||||
//#define NUCLEO_144_TFT
|
||||
|
||||
// Tell the library to use 8 bit parallel mode(otherwise SPI is assumed)
|
||||
// Tell the library to use 8-bit parallel mode(otherwise SPI is assumed)
|
||||
#define TFT_PARALLEL_8_BIT
|
||||
|
||||
// Define the display driver chip type
|
||||
@@ -30,7 +30,7 @@
|
||||
#define TFT_WR A1 // Write strobe control pin
|
||||
#define TFT_RD A0 // Read pin
|
||||
|
||||
#define TFT_D0 D8 // 8 bit parallel bus to TFT
|
||||
#define TFT_D0 D8 // 8-bit parallel bus to TFT
|
||||
#define TFT_D1 D9
|
||||
#define TFT_D2 D2
|
||||
#define TFT_D3 D3
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
#define SMOOTH_FONT
|
||||
|
||||
|
||||
// Nucleo-F767ZI has a ~216MHZ CPU clock, this is divided by 4, 8, 16 etc
|
||||
// Nucleo-F767ZI has a ~216MHZ CPU clock, this is divided by 4, 8, 16 etc.
|
||||
|
||||
#define SPI_FREQUENCY 20000000 // 27MHz SPI clock
|
||||
//#define SPI_FREQUENCY 55000000 // 55MHz is over-clocking ILI9341 but seems to work reliably!
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#define NUCLEO_64_TFT
|
||||
//#define NUCLEO_144_TFT
|
||||
|
||||
// Tell the library to use 8 bit parallel mode (otherwise SPI is assumed)
|
||||
// Tell the library to use 8-bit parallel mode (otherwise SPI is assumed)
|
||||
#define TFT_PARALLEL_8_BIT
|
||||
|
||||
// Define the display driver chip type
|
||||
@@ -29,7 +29,7 @@
|
||||
#define TFT_WR A1 // Write strobe control pin
|
||||
#define TFT_RD A0 // Read pin
|
||||
|
||||
#define TFT_D0 D8 // 8 bit parallel bus to TFT
|
||||
#define TFT_D0 D8 // 8-bit parallel bus to TFT
|
||||
#define TFT_D1 D9
|
||||
#define TFT_D2 D2
|
||||
#define TFT_D3 D3
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
//#define STM_PORTC_DATA_BUS // Pins below must re re-allocated to use this option
|
||||
//#define STM_PORTD_DATA_BUS // Pins below must re re-allocated to use this option
|
||||
|
||||
// Tell the library to use 8 bit parallel mode (otherwise SPI is assumed)
|
||||
// Tell the library to use 8-bit parallel mode (otherwise SPI is assumed)
|
||||
#define TFT_PARALLEL_8_BIT
|
||||
|
||||
// Define ONE of the the TFT display drivers
|
||||
@@ -30,7 +30,7 @@
|
||||
#define TFT_WR PB9 // Write strobe control pin
|
||||
#define TFT_RD PB1 // Read pin
|
||||
|
||||
#define TFT_D0 PA0 // 8 bit Port A parallel bus to TFT
|
||||
#define TFT_D0 PA0 // 8-bit Port A parallel bus to TFT
|
||||
#define TFT_D1 PA1
|
||||
#define TFT_D2 PA2
|
||||
#define TFT_D3 PA3
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// USER DEFINED SETTINGS
|
||||
// Set driver type, fonts to be loaded, pins used and SPI control method etc
|
||||
// Set driver type, fonts to be loaded, pins used and SPI control method etc.
|
||||
//
|
||||
// See the User_Setup_Select.h file if you wish to be able to define multiple
|
||||
// setups and then easily select which setup file is used by the compiler.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// USER DEFINED SETTINGS
|
||||
// Set driver type, fonts to be loaded, pins used and SPI control method etc
|
||||
// Set driver type, fonts to be loaded, pins used and SPI control method etc.
|
||||
//
|
||||
// See the User_Setup_Select.h file if you wish to be able to define multiple
|
||||
// setups and then easily select which setup file is used by the compiler.
|
||||
@@ -15,7 +15,7 @@
|
||||
//
|
||||
// ##################################################################################
|
||||
|
||||
// Tell the library to use 8 bit parallel mode (otherwise SPI is assumed)
|
||||
// Tell the library to use 8-bit parallel mode (otherwise SPI is assumed)
|
||||
//#define TFT_PARALLEL_8_BIT
|
||||
|
||||
// Display type - only define if RPi display
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
#define USER_SETUP_ID 162␍
|
||||
#define ST7796_DRIVER␍
|
||||
␍
|
||||
#define MHS_DISPLAY_TYPE␍
|
||||
//#define RP2040_PIO_SPI␍
|
||||
#define TFT_MISO 16␍
|
||||
#define TFT_MOSI 19␍
|
||||
#define TFT_SCLK 18␍
|
||||
#define TFT_CS 17 // Chip select control pin␍
|
||||
#define TFT_DC 20 // Data Command control pin␍
|
||||
#define TFT_RST 21 // Reset pin (could connect to Arduino RESET pin)␍
|
||||
//#define TFT_BL // LED back-light␍
|
||||
␍
|
||||
#define TOUCH_CS 22 // Chip select pin (T_CS) of touch screen␍
|
||||
␍
|
||||
#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␍
|
||||
#define LOAD_FONT4 // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters␍
|
||||
#define LOAD_FONT6 // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm␍
|
||||
#define LOAD_FONT7 // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:-.␍
|
||||
#define LOAD_FONT8 // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-.␍
|
||||
//#define LOAD_FONT8N // Font 8. Alternative to Font 8 above, slightly narrower, so 3 digits fit a 160 pixel TFT␍
|
||||
#define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts␍
|
||||
␍
|
||||
#define SMOOTH_FONT␍
|
||||
␍
|
||||
#define SPI_FREQUENCY 125000000␍
|
||||
#define SPI_READ_FREQUENCY 20000000␍
|
||||
#define SPI_TOUCH_FREQUENCY 2500000
|
||||
@@ -1,5 +1,5 @@
|
||||
// USER DEFINED SETTINGS
|
||||
// Set driver type, fonts to be loaded, pins used and SPI control method etc
|
||||
// Set driver type, fonts to be loaded, pins used and SPI control method etc.
|
||||
//
|
||||
// See the User_Setup_Select.h file if you wish to be able to define multiple
|
||||
// setups and then easily select which setup file is used by the compiler.
|
||||
@@ -15,7 +15,7 @@
|
||||
//
|
||||
// ##################################################################################
|
||||
|
||||
// Tell the library to use 8 bit parallel mode (otherwise SPI is assumed)
|
||||
// Tell the library to use 8-bit parallel mode (otherwise SPI is assumed)
|
||||
//#define TFT_PARALLEL_8_BIT
|
||||
|
||||
// Display type - only define if RPi display
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
// Setup for the ESP32 S3 with GC9A01 display␍
|
||||
#define USER_SETUP_ID 70␍
|
||||
␍
|
||||
#define GC9A01_DRIVER␍
|
||||
␍
|
||||
#define TFT_WIDTH 240␍
|
||||
#define TFT_HEIGHT 240␍
|
||||
// Typical board default pins - change to match your board␍
|
||||
#define TFT_CS 10 //34 // 10 or 34 (FSPI CS0) ␍
|
||||
#define TFT_MOSI 11 //35 // 11 or 35 (FSPI D)␍
|
||||
#define TFT_SCLK 12 //36 // 12 or 36 (FSPI CLK)␍
|
||||
#define TFT_MISO 13 //37 // 13 or 37 (FSPI Q)␍
|
||||
␍
|
||||
// Use pins in range 0-31␍
|
||||
#define TFT_DC 7␍
|
||||
#define TFT_RST 6␍
|
||||
␍
|
||||
#define LOAD_GLCD␍
|
||||
#define LOAD_FONT2␍
|
||||
#define LOAD_FONT4␍
|
||||
#define LOAD_FONT6␍
|
||||
#define LOAD_FONT7␍
|
||||
#define LOAD_FONT8␍
|
||||
#define LOAD_GFXFF␍
|
||||
␍
|
||||
#define SMOOTH_FONT␍
|
||||
␍
|
||||
// FSPI port (SPI2) used unless following defined␍
|
||||
#define USE_HSPI_PORT␍
|
||||
␍
|
||||
#define SPI_FREQUENCY 80000000 // Maximum for ILI9341␍
|
||||
@@ -1,5 +1,5 @@
|
||||
// USER DEFINED SETTINGS
|
||||
// Set driver type, fonts to be loaded, pins used and SPI control method etc
|
||||
// Set driver type, fonts to be loaded, pins used and SPI control method etc.
|
||||
//
|
||||
// See the User_Setup_Select.h file if you wish to be able to define multiple
|
||||
// setups and then easily select which setup file is used by the compiler.
|
||||
@@ -27,15 +27,15 @@
|
||||
//#define NUCLEO_64_TFT
|
||||
//#define NUCLEO_144_TFT
|
||||
|
||||
// STM32 8 bit parallel only:
|
||||
// If STN32 Port A or B pins 0-7 are used for 8 bit parallel data bus bits 0-7
|
||||
// STM32 8-bit parallel only:
|
||||
// If STN32 Port A or B pins 0-7 are used for 8-bit parallel data bus bits 0-7
|
||||
// then this will improve rendering performance by a factor of ~8x
|
||||
//#define STM_PORTA_DATA_BUS
|
||||
//#define STM_PORTB_DATA_BUS
|
||||
|
||||
// Tell the library to use 8 bit parallel mode (otherwise SPI is assumed)
|
||||
// Tell the library to use 8-bit parallel mode (otherwise SPI is assumed)
|
||||
//#define TFT_PARALLEL_8_BIT
|
||||
//#define TFT_PARALLEL_16_BIT // **** 16 bit parallel ONLY with RP2040 processor ****
|
||||
//#define TFT_PARALLEL_16_BIT // **** 16-bit parallel ONLY with RP2040 processor ****
|
||||
|
||||
// Display type - only define if RPi display
|
||||
//#define RPI_DISPLAY_TYPE // 20MHz maximum SPI
|
||||
@@ -236,7 +236,7 @@
|
||||
|
||||
// ###### EDIT THE PINs BELOW TO SUIT YOUR ESP32 PARALLEL TFT SETUP ######
|
||||
|
||||
// The library supports 8 bit parallel TFTs with the ESP32, the pin
|
||||
// The library supports 8-bit parallel TFTs with the ESP32, the pin
|
||||
// selection below is compatible with ESP32 boards in UNO format.
|
||||
// Wemos D32 boards need to be modified, see diagram in Tools folder.
|
||||
// Only ILI9481 and ILI9341 based displays have been tested!
|
||||
@@ -244,7 +244,7 @@
|
||||
// Parallel bus is only supported for the STM32 and ESP32
|
||||
// Example below is for ESP32 Parallel interface with UNO displays
|
||||
|
||||
// Tell the library to use 8 bit parallel mode (otherwise SPI is assumed)
|
||||
// Tell the library to use 8-bit parallel mode (otherwise SPI is assumed)
|
||||
//#define TFT_PARALLEL_8_BIT
|
||||
|
||||
// The ESP32 and TFT the pins used for testing are:
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
// Note: At the time of writing there is a last character code definition bug in the
|
||||
// Squix font file format so do NOT try and print the tilda (~) symbol (ASCII 0x7E)
|
||||
// Squix font file format so do NOT try and print the tilde (~) symbol (ASCII 0x7E)
|
||||
// Alternatively look at the end of the font header file and edit: 0x7E to read 0x7D
|
||||
/* e.g. vvvv
|
||||
(uint8_t *)Orbitron_Light_32Bitmaps,(GFXglyph *)Orbitron_Light_32Glyphs,0x20, 0x7D, 32};
|
||||
@@ -16,7 +16,7 @@
|
||||
// When font files are placed in the Custom folder (TFT_eSPI\Fonts\Custom) then they must
|
||||
// also be #included here:
|
||||
|
||||
// The CF_OL24 etc are a shorthand reference, but this is not essential to use the fonts
|
||||
// The CF_OL24 etc. are a shorthand reference, but this is not essential to use the fonts
|
||||
|
||||
#ifdef LOAD_GFXFF
|
||||
|
||||
|
||||
Reference in new issue
Block a user