Merge pull request #119 from euquiq/MIC_TX_RX_with_volume_and_squelch

MIC TX Now includes RX with Volume and Squelch
This commit is contained in:
Erwin Ried
2020-08-15 15:53:48 +02:00
committed by GitHub
3 changed files with 132 additions and 46 deletions

View File

@@ -1784,13 +1784,13 @@ void VuMeter::paint(Painter& painter) {
lit = true;
if (bar == 0)
color = lit ? Color::red() : Color::dark_red();
color = lit ? Color::red() : Color::dark_grey();
else if (bar == 1)
color = lit ? Color::orange() : Color::dark_orange();
color = lit ? Color::orange() : Color::dark_grey();
else if ((bar == 2) || (bar == 3))
color = lit ? Color::yellow() : Color::dark_yellow();
color = lit ? Color::yellow() : Color::dark_grey();
else
color = lit ? Color::green() : Color::dark_green();
color = lit ? Color::green() : Color::dark_grey();
painter.fill_rectangle({ pos.x(), pos.y() + (Coord)(bar * (LED_height + 1)), width, (Coord)LED_height }, color);
}