mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 06:55:52 +08:00
Update the display code for P25.
This commit is contained in:
25
OLED.cpp
25
OLED.cpp
@@ -210,6 +210,29 @@ void COLED::clearFusionInt()
|
||||
display.display();
|
||||
}
|
||||
|
||||
void COLED::writeP25Int(const char* source, bool group, const char* dest, const char* type)
|
||||
{
|
||||
m_mode = MODE_P25;
|
||||
display.fillRect(0, OLED_LINE1, display.width(), 10, BLACK);
|
||||
display.setCursor(0,OLED_LINE1);
|
||||
display.printf("%s %.10s", type, source);
|
||||
display.fillRect(0, OLED_LINE2, display.width(), 10, BLACK);
|
||||
display.setCursor(0,OLED_LINE2);
|
||||
display.printf(" %s%.10s", group ? "TG" : "", dest);
|
||||
OLED_statusbar();
|
||||
display.display();
|
||||
}
|
||||
|
||||
void COLED::clearP25Int()
|
||||
{
|
||||
display.fillRect(0, OLED_LINE1, display.width(), 10, BLACK);
|
||||
display.setCursor(0,OLED_LINE1);
|
||||
display.print("Listening");
|
||||
display.fillRect(0, OLED_LINE2, display.width(), 10, BLACK);
|
||||
OLED_statusbar();
|
||||
display.display();
|
||||
}
|
||||
|
||||
void COLED::close()
|
||||
{
|
||||
display.close();
|
||||
@@ -227,6 +250,8 @@ void COLED::OLED_statusbar()
|
||||
display.print("D-Star");
|
||||
else if (m_mode == MODE_YSF)
|
||||
display.print("Fusion");
|
||||
else if (m_mode == MODE_P25)
|
||||
display.print("P25");
|
||||
else
|
||||
display.drawBitmap(0, 0, logo_glcd_bmp, 16, 15, WHITE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user