Ken Van Hoeylandt c74006f8b6
Created Drivers folder with ILI934x subproject (#209)
Refactored all existing boards to re-use the ILI934x driver code.
2025-02-08 18:54:09 +01:00

20 lines
511 B
C++

#include "Core2Display.h"
#include "Core2Touch.h"
#include <Ili934xDisplay.h>
std::shared_ptr<tt::hal::Display> createDisplay() {
auto touch = std::make_shared<Core2Touch>();
auto configuration = std::make_unique<Ili934xDisplay::Configuration>(
CORE2_LCD_SPI_HOST,
CORE2_LCD_PIN_CS,
CORE2_LCD_PIN_DC,
CORE2_LCD_HORIZONTAL_RESOLUTION,
CORE2_LCD_VERTICAL_RESOLUTION,
touch
);
return std::make_shared<Ili934xDisplay>(std::move(configuration));
}