#include "M5stackCore2.h" #include "M5stackShared.h" extern const tt::hal::Configuration m5stack_core2 = { .initBoot = m5stack_bootstrap, .initLvgl = m5stack_lvgl_init, .createDisplay = createDisplay, .sdcard = createM5SdCard(), .power = m5stack_get_power, .i2c = { tt::hal::i2c::Configuration { .name = "Internal", .port = I2C_NUM_0, .initMode = tt::hal::i2c::InitByExternal, .canReinit = false, .hasMutableConfiguration = false, .config = (i2c_config_t) { .mode = I2C_MODE_MASTER, .sda_io_num = GPIO_NUM_21, .scl_io_num = GPIO_NUM_22, .sda_pullup_en = true, .scl_pullup_en = true, .master = { .clk_speed = 400000 }, .clk_flags = 0 } }, tt::hal::i2c::Configuration { .name = "External", // (Grove) .port = I2C_NUM_1, .initMode = tt::hal::i2c::InitByExternal, .canReinit = true, .hasMutableConfiguration = true, .config = (i2c_config_t) { .mode = I2C_MODE_MASTER, .sda_io_num = GPIO_NUM_32, .scl_io_num = GPIO_NUM_33, .sda_pullup_en = true, .scl_pullup_en = true, .master = { .clk_speed = 400000 }, .clk_flags = 0 } } } };