-- ####################### RSSI Signal ################################
if (showvalue < 0) and RSSI > 80 then
lcd.drawFilledRectangle(205,7,5,48,0)
lcd.drawFilledRectangle(199,18,5,37,0)
lcd.drawFilledRectangle(193,28,5,27,0)
lcd.drawFilledRectangle(187,34,5,21,0)
lcd.drawFilledRectangle(181,40,5,15,0)
lcd.drawFilledRectangle(175,46,5,9,0)
lcd.drawFilledRectangle(169,52,5,3,0)
end
if (showvalue < 0) and RSSI >= 70 then
lcd.drawRectangle(205,7,5,48)
lcd.drawFilledRectangle(199,18,5,37,0)
lcd.drawFilledRectangle(193,28,5,27,0)
lcd.drawFilledRectangle(187,34,5,21,0)
lcd.drawFilledRectangle(181,40,5,15,0)
lcd.drawFilledRectangle(175,46,5,9,0)
lcd.drawFilledRectangle(169,52,5,3,0)
end
if (showvalue < 0) and RSSI >=60 then
lcd.drawRectangle(205,7,5,48)
lcd.drawRectangle(199,18,5,37)
lcd.drawFilledRectangle(193,28,5,27,0)
lcd.drawFilledRectangle(187,34,5,21,0)
lcd.drawFilledRectangle(181,40,5,15,0)
lcd.drawFilledRectangle(175,46,5,9,0)
lcd.drawFilledRectangle(169,52,5,3,0)
end
if (showvalue < 0) and RSSI >= 50 then
lcd.drawRectangle(205,7,5,48)
lcd.drawRectangle(199,18,5,37)
lcd.drawRectangle(193,28,5,27)
lcd.drawFilledRectangle(187,34,5,21,0)
lcd.drawFilledRectangle(181,40,5,15,0)
lcd.drawFilledRectangle(175,46,5,9,0)
lcd.drawFilledRectangle(169,52,5,3,0)
end
if (showvalue < 0) and RSSI >= 40 then
lcd.drawRectangle(205,7,5,48)
lcd.drawRectangle(199,18,5,37)
lcd.drawRectangle(193,28,5,27)
lcd.drawRectangle(187,34,5,21)
lcd.drawFilledRectangle(181,40,5,15,0)
lcd.drawFilledRectangle(175,46,5,9,0)
lcd.drawFilledRectangle(169,52,5,3,0)
end
if (showvalue < 0) and RSSI >= 30 then
lcd.drawRectangle(205,7,5,48)
lcd.drawRectangle(199,18,5,37)
lcd.drawRectangle(193,28,5,27)
lcd.drawRectangle(187,34,5,21)
lcd.drawRectangle(181,40,5,15)
lcd.drawFilledRectangle(175,46,5,9,0)
lcd.drawFilledRectangle(169,52,5,3,0)
end
if (showvalue < 0) and RSSI >= 20 then
lcd.drawRectangle(205,7,5,48)
lcd.drawRectangle(199,18,5,37)
lcd.drawRectangle(193,28,5,27)
lcd.drawRectangle(187,34,5,21)
lcd.drawRectangle(181,40,5,15)
lcd.drawRectangle(175,46,5,9)
lcd.drawFilledRectangle(169,52,5,3,0)
end
if (showvalue < 0) and RSSI <= 19 then
lcd.drawRectangle(205,7,5,48)
lcd.drawRectangle(199,18,5,37)
lcd.drawRectangle(193,28,5,27)
lcd.drawRectangle(187,34,5,21)
lcd.drawRectangle(181,40,5,15)
lcd.drawRectangle(175,46,5,9)
lcd.drawRectangle(169,52,5,3)
end
if (showvalue < 0) then
lcd.drawChannel(182, 56, 200, LEFT)
lcd.drawText(lcd.getLastPos(), 57, "dB", SMLSIZE)
end