mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-27 12:12:07 +00:00
Heltec-Tracker: TFT LCD support (#2612)
* Heltec-Tracker: TFT LCD support * trunk fmt * backwards compatibility with ST7735 devices * trunk fmt
This commit is contained in:
@@ -1,23 +1,12 @@
|
||||
[env:heltec-wireless-tracker]
|
||||
extends = esp32s3_base
|
||||
board = heltec_wifi_lora_32_V3
|
||||
upload_protocol = esp-builtin
|
||||
|
||||
build_flags =
|
||||
${esp32s3_base.build_flags} -D HELTEC_WIRELESS_TRACKER -I variants/heltec_wireless_tracker
|
||||
-DUSER_SETUP_LOADED
|
||||
-DTFT_WIDTH=80
|
||||
-DTFT_HEIGHT=160
|
||||
-DST7735_GREENTAB160x80
|
||||
-DST7735_DRIVER
|
||||
;-TFT_RGB_ORDER=TFT_BGR
|
||||
-DTFT_CS=38
|
||||
-DTFT_DC=40
|
||||
-DTFT_RST=39
|
||||
-DTFT_WR=42
|
||||
-DTFT_SCLK=41
|
||||
;-DSPI_FREQUENCY=40000000
|
||||
;-DSPI_FREQUENCY=27000000
|
||||
;-DSPI_READ_FREQUENCY=16000000
|
||||
;-DDISABLE_ALL_LIBRARY_WARNINGS
|
||||
-DARDUINO_USB_CDC_ON_BOOT=1
|
||||
|
||||
lib_deps =
|
||||
${esp32s3_base.lib_deps}
|
||||
bodmer/TFT_eSPI@^2.4.76
|
||||
lovyan03/LovyanGFX@^1.1.7
|
||||
@@ -1,18 +1,25 @@
|
||||
#define LED_PIN 18
|
||||
|
||||
#define TFT_POWER_EN 46
|
||||
|
||||
#define ST7735_RESET 39 // Output
|
||||
// ST7735S TFT LCD
|
||||
#define ST7735S 1 // there are different (sub-)versions of ST7735
|
||||
#define ST7735_CS 38
|
||||
#define ST7735_BACKLIGHT_EN 45
|
||||
#define ST7735_RS 40
|
||||
#define ST7735_SDA 42
|
||||
#define ST7735_RS 40 // DC
|
||||
#define ST7735_SDA 42 // MOSI
|
||||
#define ST7735_SCK 41
|
||||
|
||||
// #define RESET_OLED 21
|
||||
// #define I2C_SDA 17 // I2C pins for this board
|
||||
// #define I2C_SCL 18
|
||||
|
||||
#define ST7735_RESET 39
|
||||
#define ST7735_MISO -1
|
||||
#define ST7735_BUSY -1
|
||||
#define ST7735_BL 45
|
||||
#define ST7735_SPI_HOST SPI3_HOST
|
||||
#define ST7735_BACKLIGHT_EN 45
|
||||
#define SPI_FREQUENCY 40000000
|
||||
#define SPI_READ_FREQUENCY 16000000
|
||||
#define SCREEN_ROTATE
|
||||
#define TFT_HEIGHT 160
|
||||
#define TFT_WIDTH 80
|
||||
#define TFT_OFFSET_X 26
|
||||
#define TFT_OFFSET_Y 0
|
||||
#define VTFT_CTRL 46 // Heltec Tracker needs this pulled low for TFT
|
||||
#define SCREEN_TRANSITION_FRAMERATE 1 // fps
|
||||
|
||||
#define VEXT_ENABLE Vext // active low, powers the oled display and the lora antenna boost
|
||||
@@ -31,8 +38,6 @@
|
||||
#define PIN_GPS_PPS 36
|
||||
#define VGNSS_CTRL 37 // Heltec Tracker needs this pulled low for GPS
|
||||
|
||||
#define VTFT_CTRL 46 // Heltec Tracker needs this pulled low for TFT
|
||||
|
||||
#define USE_SX1262
|
||||
|
||||
#define LORA_DIO0 -1 // a No connect on the SX1262 module
|
||||
|
||||
Reference in New Issue
Block a user