New board: Elecrow CrowPanel Advance 3.5" (#231)

- Implement CrowPanel Advance 3.5"
- New driver subproject: ILI9488
- New driver subproject: GT911
- Refactor T-Deck to use new driver subproject
- Fix for `flash.ps1`: don't set flash speed
This commit is contained in:
Ken Van Hoeylandt
2025-02-22 19:09:15 +01:00
committed by GitHub
parent 44b366b557
commit b14887d5fb
28 changed files with 728 additions and 53 deletions
+16 -2
View File
@@ -1,7 +1,7 @@
#include "TdeckDisplay.h"
#include "TdeckDisplayConstants.h"
#include "TdeckTouch.h"
#include <Gt911Touch.h>
#include <PwmBacklight.h>
#include <St7789Display.h>
@@ -9,8 +9,22 @@
#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 = std::make_shared<TdeckTouch>();
auto touch = createTouch();
auto configuration = std::make_unique<St7789Display::Configuration>(
TDECK_LCD_SPI_HOST,