Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 },
}
32 changes: 30 additions & 2 deletions 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 All @@ -128,4 +156,4 @@ local supportedRadios =
local resolution = LCD_W.."x"..LCD_H
local radio = assert(supportedRadios[resolution], resolution.." not supported")

return radio
return radio