CoreS3 refactored & remove M5 libraries (#143)
Remove dependencies M5Unified and M5GFX because: - Sometimes the release doesn't even compile - The amount of functions is too close to the limit (I recently had to remove some code/dependency to be able to make a build at all) - Graphics performance issue since last update - Touch screen performance issues (not perfect yet, but better) - Compatibility issues with Tactility SPI/I2C versus M5Unified/M5GFX variants.
This commit is contained in:
committed by
GitHub
parent
3214923425
commit
737c0f7447
@@ -1,17 +1,21 @@
|
||||
#include "M5stackCoreS3.h"
|
||||
#include "M5stackShared.h"
|
||||
#include "InitBoot.h"
|
||||
#include "InitLvgl.h"
|
||||
#include "hal/CoreS3Display.h"
|
||||
#include "hal/CoreS3SdCard.h"
|
||||
#include "hal/CoreS3Power.h"
|
||||
|
||||
const tt::hal::Configuration m5stack_cores3 = {
|
||||
.initBoot = m5stack_bootstrap,
|
||||
.initLvgl = m5stack_lvgl_init,
|
||||
.initBoot = initBoot,
|
||||
.initLvgl = initLvgl,
|
||||
.createDisplay = createDisplay,
|
||||
.sdcard = createM5SdCard(),
|
||||
.power = m5stack_get_power,
|
||||
.sdcard = createSdCard(),
|
||||
.power = createPower,
|
||||
.i2c = {
|
||||
tt::hal::i2c::Configuration {
|
||||
.name = "Internal",
|
||||
.port = I2C_NUM_0,
|
||||
.initMode = tt::hal::i2c::InitByExternal,
|
||||
.initMode = tt::hal::i2c::InitByTactility,
|
||||
.canReinit = false,
|
||||
.hasMutableConfiguration = false,
|
||||
.config = (i2c_config_t) {
|
||||
@@ -29,7 +33,7 @@ const tt::hal::Configuration m5stack_cores3 = {
|
||||
tt::hal::i2c::Configuration {
|
||||
.name = "External", // Grove
|
||||
.port = I2C_NUM_1,
|
||||
.initMode = tt::hal::i2c::InitByExternal,
|
||||
.initMode = tt::hal::i2c::InitByTactility,
|
||||
.canReinit = true,
|
||||
.hasMutableConfiguration = true,
|
||||
.config = (i2c_config_t) {
|
||||
|
||||
Reference in New Issue
Block a user