M5Stack Core2 support (#48)

This commit is contained in:
Ken Van Hoeylandt
2024-02-22 18:26:11 +01:00
committed by GitHub
parent 473fb673bd
commit d58f131033
23 changed files with 566 additions and 10 deletions
+8 -3
View File
@@ -3,13 +3,18 @@ cmake_minimum_required(VERSION 3.16)
set(BOARD_COMPONENTS tactility-esp)
if("${IDF_TARGET}" STREQUAL "esp32")
list(APPEND BOARD_COMPONENTS yellow_board)
list(APPEND BOARD_COMPONENTS
yellow_board
m5stack_core2
)
endif()
# T-Deck is an S3 platform
if("${IDF_TARGET}" STREQUAL "esp32s3")
list(APPEND BOARD_COMPONENTS lilygo_tdeck)
list(APPEND BOARD_COMPONENTS waveshare_s3_touch)
list(APPEND BOARD_COMPONENTS
lilygo_tdeck
waveshare_s3_touch
)
endif()
idf_component_register(
+2
View File
@@ -10,6 +10,8 @@ menu "Tactility App"
bool "Yellow Board (2.4\" capacitive)"
config TT_BOARD_LILYGO_TDECK
bool "LilyGo T-Deck"
config TT_BOARD_M5STACK_CORE2
bool "M5Stack Core2"
config TT_BOARD_WAVESHARE_S3_TOUCH
bool "Waveshare S3 Touch LCD 4.3\""
endchoice
+3
View File
@@ -9,6 +9,9 @@
#elif defined(CONFIG_TT_BOARD_YELLOW_BOARD_24_CAP)
#include "yellow_board.h"
#define TT_BOARD_HARDWARE &yellow_board_24inch_cap
#elif defined(CONFIG_TT_BOARD_M5STACK_CORE2)
#include "m5stack_core2.h"
#define TT_BOARD_HARDWARE &m5stack_core2
#elif defined(CONFIG_TT_BOARD_WAVESHARE_S3_TOUCH)
#include "waveshare_s3_touch.h"
#define TT_BOARD_HARDWARE &waveshare_s3_touch