#include "CrowPanelDisplay.h" #include "CrowPanelDisplayConstants.h" #include "CrowPanelTouch.h" #include #include #include #define TAG "crowpanel_display" std::shared_ptr createDisplay() { auto touch = std::make_shared(); auto configuration = std::make_unique( CROWPANEL_LCD_SPI_HOST, CROWPANEL_LCD_PIN_CS, CROWPANEL_LCD_PIN_DC, 320, 240, touch ); configuration->backlightDutyFunction = driver::pwmbacklight::setBacklightDuty; return std::make_shared(std::move(configuration)); }