#include "TdeckDisplay.h" #include "TdeckDisplayConstants.h" #include "TdeckTouch.h" #include #include #include #define TAG "tdeck_display" std::shared_ptr createDisplay() { auto touch = std::make_shared(); auto configuration = std::make_unique( TDECK_LCD_SPI_HOST, TDECK_LCD_PIN_CS, TDECK_LCD_PIN_DC, 320, 240, touch, true, true, false, true ); configuration->backlightDutyFunction = driver::pwmbacklight::setBacklightDuty; return std::make_shared(std::move(configuration)); }