Fix 3.5" black screen: drive backlight on GPIO27, not GPIO21.
GPIO21 is GT911 INT on 3248S035C; PWM on the wrong pin left the panel dark. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user