Fix 3.5C backlight/GT911: BL=GPIO27, capacitive touch, export package.

Wrong BL=21 caused black screens; INT stays on 21 as polling input after reset.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-25 12:16:57 +08:00
parent 3744a79da5
commit ace74649ff
16 changed files with 413 additions and 41 deletions

View File

@@ -23,7 +23,7 @@ if (-not $SkipBuild) {
$src = Join-Path $root (".pio\build\" + $Env)
if ($Env -eq "cyd_35r") {
$dstName = "cyd_35r"
$boardLine = "board: ESP32-3248S035 (ST7796)"
$boardLine = "board: ESP32-3248S035 (ST7796 + GT911)"
$boardIdHint = "esp32-3248s035"
} else {
$dstName = "cyd"
@@ -73,8 +73,8 @@ if (Test-Path $metaPath) {
try {
$meta = Get-Content $metaPath -Raw | ConvertFrom-Json
$meta.boardId = $boardIdHint
if ($Env -eq "cyd_35r" -and $meta.name -notmatch "3\.5") {
$meta.name = ($meta.name -replace "\s*$","") + " (3.5\")"
if ($Env -eq "cyd_35r" -and $meta.name -notmatch '3\.5') {
$meta.name = ($meta.name -replace '\s*$','') + ' (3.5")'
}
$meta | ConvertTo-Json -Depth 8 | Set-Content -Encoding utf8 $metaPath
} catch {