M5stack display support (experimental)

This commit is contained in:
Klaus K Wilting 2020-04-05 23:22:31 +02:00
parent a56c534195
commit 2d45c599bd
4 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@
; ---> SELECT THE TARGET PLATFORM HERE! <---
[board]
;halfile = generic.h
halfile = generic.h
;halfile = ebox.h
;halfile = eboxtube.h
;halfile = ecopower.h
@ -32,7 +32,7 @@
;halfile = tinypico.h
;halfile = tinypicomatrix.h
;halfile = m5core.h
halfile = m5fire.h
;halfile = m5fire.h
[platformio]
; upload firmware to board with usb cable
@ -97,8 +97,6 @@ build_flags_basic =
'-DCORE_DEBUG_LEVEL=${common.debug_level}'
'-DLOG_LOCAL_LEVEL=${common.debug_level}'
'-DPROGVERSION="${common.release_version}"'
'-DUSER_SETUP_LOADED=1' ; needed for TFT_eSPI library
build_flags_sensors =
-Llib/Bosch-BSEC/src/esp32/
-lalgobsec

View File

@ -65,7 +65,7 @@ void dp_setup(int contrast) {
// set display buffer
oledSetBackBuffer(&ssoled, displaybuf);
oledSetTextWrap(&&ssoled, true);
oledSetTextWrap(&ssoled, true);
#elif (HAS_DISPLAY) == 2 // SPI TFT

View File

@ -51,6 +51,7 @@
#define MY_DISPLAY_INVERT 1
// setting for M5 display
#define USER_SETUP_LOADED 1
#define ILI9341_DRIVER 1
#define M5STACK // needed for TFT driver

View File

@ -52,6 +52,7 @@
#define MY_DISPLAY_INVERT 1
// setting for M5 display
#define USER_SETUP_LOADED 1
#define ILI9341_DRIVER 1
#define M5STACK // needed for TFT driver