Fix 3.5C pins per CYD_PROJECT_GUIDE: BL=27, LD2420 TX=GPIO4, GT911 INT as INPUT.

Black-screen cause was TFT_BL=21; archive flashable firmware/cyd_35r.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-25 11:04:59 +08:00
parent 569149030a
commit 786f48ebd6
16 changed files with 476 additions and 87 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_28r"
@@ -67,21 +67,5 @@ foreach ($h in $hashes) {
}
$lines | Set-Content -Encoding utf8 (Join-Path $dst "VERSION.txt")
# Keep / refresh meta.json boardId for catalog filtering
$metaPath = Join-Path $dst "meta.json"
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\")"
}
$meta | ConvertTo-Json -Depth 8 | Set-Content -Encoding utf8 $metaPath
} catch {
Write-Host "meta.json update skipped: $_"
}
} elseif ($Env -eq "cyd_35r") {
Write-Host "Note: add firmware/cyd_35r/meta.json with boardId=$boardIdHint for the web catalog"
}
Write-Host "Exported -> $dst (env=$Env git=$git)"