Skip to content

Commit

Permalink
feat: add 100_config_tft.ino
Browse files Browse the repository at this point in the history
make it more obvious what and how to configure
  • Loading branch information
dni committed Mar 6, 2025
1 parent d707777 commit 9ebfee6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ PCB/Fossa PCB-backups
PCB/Gerbers
build
.venv
.cache
25 changes: 25 additions & 0 deletions fossa/100_config_tft.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#define USER_SETUP_LOADED

//#define ILI9341_DRIVER
#define ST7796_DRIVER
#define TFT_WIDTH 480
#define TFT_HEIGHT 320
#define TFT_BACKLIGHT_ON HIGH
#define USE_HSPI_PORT
#define TFT_MISO 12
#define TFT_MOSI 13
#define TFT_SCLK 14
#define TFT_CS 15
#define TFT_DC 21
#define TFT_RST 22
#define TFT_BL 23
#define LOAD_GLCD
#define LOAD_FONT2
#define LOAD_FONT4
#define LOAD_FONT6
#define LOAD_FONT7
#define LOAD_FONT8
#define LOAD_GFXFF
#define SMOOTH_FONT
#define SPI_FREQUENCY 27000000
#define SPI_READ_FREQUENCY 20000000

0 comments on commit 9ebfee6

Please sign in to comment.