Updated screenshots and .gitignore of HelloWorld (#291)

* T-Deck Pro work in progress

* Add .gitignore to HelloWorld
This commit is contained in:
Ken Van Hoeylandt
2025-06-15 13:49:00 +02:00
committed by GitHub
parent 29e4350517
commit 6de0f442fb
26 changed files with 1527 additions and 43 deletions
@@ -0,0 +1,45 @@
#include "TdeckDisplay.h"
#include "TdeckDisplayConstants.h"
#include <Gt911Touch.h>
#include <PwmBacklight.h>
#include <St7789Display.h>
#include <driver/spi_master.h>
#define TAG "tdeck_display"
static std::shared_ptr<tt::hal::touch::TouchDevice> createTouch() {
// Note for future changes: Reset pin is 48 and interrupt pin is 47
auto configuration = std::make_unique<Gt911Touch::Configuration>(
I2C_NUM_0,
240,
320,
true,
true,
false
);
return std::make_shared<Gt911Touch>(std::move(configuration));
}
std::shared_ptr<tt::hal::display::DisplayDevice> createDisplay() {
auto touch = createTouch();
auto configuration = std::make_unique<St7789Display::Configuration>(
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<St7789Display>(std::move(configuration));
}