#include "SdCard.h" #include #include constexpr auto CORE2_SDCARD_PIN_CS = GPIO_NUM_4; constexpr auto CORE2_LCD_PIN_CS = GPIO_NUM_5; using tt::hal::sdcard::SpiSdCardDevice; std::shared_ptr createSdCard() { auto configuration = std::make_unique( CORE2_SDCARD_PIN_CS, GPIO_NUM_NC, GPIO_NUM_NC, GPIO_NUM_NC, SdCardDevice::MountBehaviour::AtBoot, tt::lvgl::getSyncLock(), std::vector { CORE2_LCD_PIN_CS } ); return std::make_shared( std::move(configuration) ); }