- use LovyanGFX for m5stack

- update some comments
This commit is contained in:
Thomas Göttgens
2023-08-06 15:45:47 +02:00
parent f5d323fdd3
commit 0aef8703b6
7 changed files with 102 additions and 17 deletions

View File

@@ -2,8 +2,6 @@
extends = esp32_base
board = m5stack-core-esp32
board_level = extra
upload_port = COM8
monitor_port = COM8
monitor_filters = esp32_exception_decoder
build_src_filter =
${esp32_base.build_src_filter}
@@ -28,4 +26,4 @@ lib_ignore =
m5stack-core
lib_deps =
${esp32_base.lib_deps}
bodmer/TFT_eSPI@^2.4.76
lovyan03/LovyanGFX@^1.1.7

View File

@@ -34,8 +34,13 @@
#define GPS_RX_PIN 16
#define GPS_TX_PIN 17
// Define if screen should be mirrored left to right
#define SCREEN_ROTATE
#define TFT_HEIGHT 240
#define TFT_WIDTH 320
#define TFT_OFFSET_X 0
#define TFT_OFFSET_Y 0
#define TFT_BUSY -1
// LCD screens are slow, so slowdown the wipe so it looks better
#define SCREEN_TRANSITION_FRAMERATE 1 // fps
#define ILI9341_SPI_HOST VSPI_HOST // VSPI_HOST or HSPI_HOST