34 lines
1.2 KiB
C
34 lines
1.2 KiB
C
// See SetupX_Template.h for all options available
|
|
|
|
#define SSD1351_DRIVER
|
|
|
|
#define TFT_WIDTH 128
|
|
#define TFT_HEIGHT 128
|
|
|
|
#define STM32
|
|
#define TFT_SPI_PORT 1
|
|
|
|
#define SSD1351_1DOT5_INCH_128 // For 128 x 128 display
|
|
|
|
//#define TFT_MOSI PA7
|
|
//#define TFT_SCLK PA5
|
|
#define TFT_DC PB1
|
|
#define TFT_RST PA12
|
|
#define TFT_CS PB0
|
|
|
|
|
|
|
|
#define LOAD_GLCD // Original Adafruit 8 pixel font needs ~1820 bytes in FLASH
|
|
#define LOAD_FONT2 // Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters
|
|
#define LOAD_FONT4 // Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters
|
|
#define LOAD_FONT6 // Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm
|
|
#define LOAD_FONT7 // 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:.
|
|
#define LOAD_FONT8 // Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-.
|
|
//#define LOAD_FONT8N // Alternative to Font 8 above, slightly narrower, so 3 digits fit a 160 pixel TFT
|
|
#define LOAD_GFXFF // FreeFonts- 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts
|
|
#define SMOOTH_FONT
|
|
|
|
|
|
#define SPI_FREQUENCY 20000000
|
|
//#define SPI_FREQUENCY 40000000 // Works after shielding the wires!
|