M5stack display support (experimental)
This commit is contained in:
parent
a56c534195
commit
2d45c599bd
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user