#include "Core2Display.h" #include "Core2Touch.h" #include std::shared_ptr createDisplay() { auto touch = std::make_shared(); auto configuration = std::make_unique( CORE2_LCD_SPI_HOST, CORE2_LCD_PIN_CS, CORE2_LCD_PIN_DC, CORE2_LCD_HORIZONTAL_RESOLUTION, CORE2_LCD_VERTICAL_RESOLUTION, touch ); configuration->mirrorX = true; return std::make_shared(std::move(configuration)); }