Skip to content

Commit 6c08581

Browse files
committed
Add a 320x240 resolution configuration file
to support the FlySky PA01. new file: src/SCRIPTS/BF/TEMPLATES/320x240.lua modified: src/SCRIPTS/BF/radios.lua
1 parent ccf92d0 commit 6c08581

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
return {
2+
margin = 5,
3+
indent = 15,
4+
lineSpacing = 20,
5+
listSpacing = { line = 20, field = 170 },
6+
tableSpacing = { row = 25, col = 60, header = 20 },
7+
}

src/SCRIPTS/BF/radios.lua

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,47 @@ local supportedRadios =
151151
},
152152
cms = nil,
153153
},
154+
["320x240"] = {
155+
msp = {
156+
template = "TEMPLATES/320x240.lua",
157+
highRes = true,
158+
MenuBox = {
159+
x = 80,
160+
y = 80,
161+
w = 160,
162+
x_offset = 54,
163+
h_line = 20,
164+
h_offset = 10
165+
},
166+
SaveBox = {
167+
x = 80,
168+
y = 80,
169+
w = 144,
170+
x_offset = 10,
171+
h = 60,
172+
h_offset = 12
173+
},
174+
NoTelem = {128, LCD_H - 28, "No Telemetry", (TEXT_COLOR or 0) + INVERS + BLINK},
175+
textSize = 0,
176+
yMinLimit = 30,
177+
yMaxLimit = 200
178+
},
179+
cms = {
180+
rows = 9,
181+
cols = 32,
182+
pixelsPerRow = 24,
183+
pixelsPerChar = 12,
184+
xIndent = 10,
185+
yOffset = 28,
186+
textSize = MIDSIZE,
187+
refresh = {
188+
event = EVT_VIRTUAL_ENTER,
189+
text = "Refresh: [ENT]",
190+
top = 1,
191+
left = 220
192+
}
193+
},
194+
},
154195
}
155196

156197
local resolution = LCD_W.."x"..LCD_H

0 commit comments

Comments
 (0)