File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -147,8 +147,9 @@ file(REMOVE ${CMAKE_SOURCE_DIR}/main/libraries/TFT_eSPI/User_Setup.h)
147
147
if (BOARD STREQUAL "M5STACK" )
148
148
message (STATUS "Compiling for M5Stack" )
149
149
list (APPEND compile_definitions "M5Stack" )
150
- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DM5Stack" )
151
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DM5Stack" )
150
+ list (APPEND compile_definitions "M5StackCore1" )
151
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DM5Stack -DM5StackCore1" )
152
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DM5Stack -DM5StackCore1" )
152
153
file (COPY ${CMAKE_SOURCE_DIR} /main/config/TFT_eSPI/M5Stack/User_Setup.h
153
154
DESTINATION ${CMAKE_SOURCE_DIR} /main/libraries/TFT_eSPI)
154
155
endif (BOARD STREQUAL "M5STACK" )
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ static const unsigned long MinsBeforeScreenSleep = 10; // Minutes before putting
15
15
//
16
16
//
17
17
18
- #if defined(M5StackCore1 ) || defined(BUTTONSASS )
18
+ #if defined(M5StackCore1 ) || defined(BUTTONS )
19
19
// Define Button PINs
20
20
#define BUTTON_A_PIN 39
21
21
#define BUTTON_B_PIN 38
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ namespace gfx
12
12
{
13
13
struct ButtonDriver
14
14
{
15
+ using InnerDriver = TFT_eSPI;
15
16
ButtonDriver (TFT_eSPI* tftDriver);
16
17
void updateHardwareConfig (config::HardwareConfig& hwConfig) { }; // noop
17
18
You can’t perform that action at this time.
0 commit comments