Hier mal die Quelle zu weiterfummeln
local function run(event)
lcd.drawRectangle(5, 4, 36, 24) -- GasG Rechteck
lcd.drawRectangle(42, 4, 35, 24) --Gas% Rechteck
lcd.drawRectangle(78, 4, 38, 24) --RSSI Rechteck
lcd.drawRectangle(78,30, 38, 32) --RXBatt Rechteck
lcd.drawRectangle(5, 30, 72, 32) -- TX-Batt Rechteck
lcd.drawFilledRectangle(5,19,111,20, 3) -- Namen Rechteck
lcd.drawFilledRectangle(0,0,5,64, 3) -- Rand Rechteck
lcd.drawFilledRectangle(116,0,4,64, 3) -- Rand Rechteck
lcd.drawFilledRectangle(5,0,115,4, 3) -- Rand Rechteck
lcd.drawFilledRectangle(5,62,115,2, 3) -- Rand Rechteck
lcd.drawFilledRectangle(41,4,2,15, 3) -- Rand Rechteck
lcd.drawFilledRectangle(76,4,2,58, 3) -- Rand Rechteck
lcd.drawText(10, 20, "Gas G", 2)
lcd.drawText(47,20, "Gas %", 2)
lcd.drawText(81, 20, "RSSI %", 2)
lcd.drawText(79, 31, "RXBatt",2)
lcd.drawText(7, 43, "TX-Batt:", 0)
lcd.drawText(9, 31, " FrSky ",2)
lcd.drawText(125, 4, "Hoehe in Metern",0)
lcd.drawText(205, 46, "m", 0)
lcd.drawText(165, 55, "MAX:", 0)
if getValue("altitude") >= 300 then -- Höhe max Blink
lcd.drawNumber(205, 15, getValue("altitude"), XXLSIZE+1)
else
lcd.drawNumber(205, 15, getValue("altitude"), XXLSIZE)
end
lcd.drawChannel(190, 55, "altitude-max", LEFT)
local timer = model.getTimer(0)
lcd.drawTimer(45, 6, timer.value, MIDSIZE)
timer = model.getTimer(1)
lcd.drawTimer(8, 6, timer.value, MIDSIZE)
if getValue("rssi") < 40 then -- RSSI min Blink
lcd.drawChannel(105, 6, "rssi",MIDSIZE+1)
else
lcd.drawChannel(105, 6, "rssi",MIDSIZE)
end
lcd.drawChannel(107, 40,"a1",MIDSIZE)
if "a1" < "a1-min" then -- a1 min Blink
lcd.drawChannel(103, 53, "a1-min",0)
else
lcd.drawChannel(103, 53, "a1-min",1)
end
lcd.drawChannel(55, 40, "tx-voltage", LEFT+MIDSIZE)
local settings = getGeneralSettings()
local percent = (getValue("tx-voltage")-settings.battMin) * 100 / (settings.battMax-settings.battMin)
lcd.drawGauge(7, 52, 68, 8, percent, 100)
end
return { run=run }
Lasst Ihr die Ränder weg wir es heller (-- Rand Rechteck)
..... viel Spass beim weiterfummeln