Skip to content

Commit

Permalink
Merge pull request #507 from 3djc/480x320
Browse files Browse the repository at this point in the history
feat: add 480x320 support
  • Loading branch information
haslinghuis authored May 17, 2024
2 parents de29b66 + a999c65 commit 47c4b7d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/SCRIPTS/BF/TEMPLATES/480x320.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
return {
margin = 5,
indent = 15,
lineSpacing = 22,
listSpacing = { line = 20, field = 170 },
tableSpacing = { row = 25, col = 60, header = 20 },
}
30 changes: 29 additions & 1 deletion src/SCRIPTS/BF/radios.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,35 @@ local supportedRadios =
}
},
},
["320x480"] =
["480x320"] =
{
msp = {
template = "TEMPLATES/480x320.lua",
highRes = true,
MenuBox = { x=120, y=100, w=200, x_offset=68, h_line=20, h_offset=6 },
SaveBox = { x=120, y=100, w=180, x_offset=12, h=60, h_offset=12 },
NoTelem = { 192, LCD_H - 28, "No Telemetry", (TEXT_COLOR or 0) + INVERS + BLINK },
textSize = 0,
yMinLimit = 35,
yMaxLimit = 280,
},
cms = {
rows = 9,
cols = 32,
pixelsPerRow = 24,
pixelsPerChar = 14,
xIndent = 14,
yOffset = 32,
textSize = MIDSIZE,
refresh = {
event = EVT_VIRTUAL_ENTER,
text = "Refresh: [ENT]",
top = 1,
left = 300,
}
},
},
["320x480"] =
{
msp = {
template = "TEMPLATES/320x480.lua",
Expand Down

0 comments on commit 47c4b7d

Please sign in to comment.