diff --git a/radio/sdcard/horus/WIDGETS/Ghost/img/green.png b/radio/sdcard/horus/WIDGETS/Ghost/img/green.png new file mode 100644 index 000000000..27c3a85cc Binary files /dev/null and b/radio/sdcard/horus/WIDGETS/Ghost/img/green.png differ diff --git a/radio/sdcard/horus/WIDGETS/Ghost/img/orange.png b/radio/sdcard/horus/WIDGETS/Ghost/img/orange.png new file mode 100644 index 000000000..6f926c44b Binary files /dev/null and b/radio/sdcard/horus/WIDGETS/Ghost/img/orange.png differ diff --git a/radio/sdcard/horus/WIDGETS/Ghost/img/red.png b/radio/sdcard/horus/WIDGETS/Ghost/img/red.png new file mode 100644 index 000000000..86b8da84f Binary files /dev/null and b/radio/sdcard/horus/WIDGETS/Ghost/img/red.png differ diff --git a/radio/sdcard/horus/WIDGETS/Ghost/main.lua b/radio/sdcard/horus/WIDGETS/Ghost/main.lua index dfaef17c9..1e1c5c06d 100644 --- a/radio/sdcard/horus/WIDGETS/Ghost/main.lua +++ b/radio/sdcard/horus/WIDGETS/Ghost/main.lua @@ -16,6 +16,8 @@ ---- ######################################################################### local backgroundBitmap +local orangeLed +local greenLed local offsetX local offsetY local sensors = {} @@ -45,6 +47,8 @@ end local function create(zone, options) local wgt = { zone=zone, options=options} backgroundBitmap = Bitmap.open("/WIDGETS/Ghost/img/background.png") + orangeLed = Bitmap.open("/WIDGETS/Ghost/img/orange.png") + greenLed = Bitmap.open("/WIDGETS/Ghost/img/green.png") offsetX = (wgt.zone.w - 178) / 2 offsetY = (wgt.zone.h - 148) / 2 return wgt @@ -68,6 +72,14 @@ function refresh(wgt) end if getRSSI() ~= 0 then + if getValue("RFMD") == "Pure" then + if orangeLed ~= nil then + lcd.drawBitmap(orangeLed, wgt.zone.x + offsetX + 143, wgt.zone.y + offsetY) + end + elseif greenLed ~= nil then + lcd.drawBitmap(greenLed, wgt.zone.x + offsetX + 143, wgt.zone.y + offsetY) + end + getValues(wgt) -- RF Mode/Band