#include "Display.h" #include "Constants.h" #include std::shared_ptr createDisplay() { auto configuration = std::make_unique( DISPLAY_I2C_PORT, DISPLAY_I2C_ADDRESS, DISPLAY_PIN_RST, DISPLAY_HORIZONTAL_RESOLUTION, DISPLAY_VERTICAL_RESOLUTION, nullptr, // no touch false // invert ); auto display = std::make_shared(std::move(configuration)); return std::static_pointer_cast(display); }