diff --git a/OLED.cpp b/OLED.cpp index 8dbfbe5..6f9b4ec 100644 --- a/OLED.cpp +++ b/OLED.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016,2017,2018 by Jonathan Naylor G4KLX + * Copyright (C) 2016,2017,2018,2020 by Jonathan Naylor G4KLX * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -306,6 +306,21 @@ void COLED::setQuitInt() m_display.display(); } +void COLED::setFMInt() +{ + m_mode = MODE_FM; + + m_display.clearDisplay(); + OLED_statusbar(); + + m_display.setCursor(0,30); + m_display.setTextSize(3); + m_display.print("FM"); + + m_display.setTextSize(1); + m_display.display(); +} + void COLED::writeDStarInt(const char* my1, const char* my2, const char* your, const char* type, const char* reflector) { m_mode = MODE_DSTAR; diff --git a/OLED.h b/OLED.h index 6f40371..dec7b41 100644 --- a/OLED.h +++ b/OLED.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016,2017,2018 by Jonathan Naylor G4KLX + * Copyright (C) 2016,2017,2018,2020 by Jonathan Naylor G4KLX * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -50,6 +50,7 @@ public: virtual void setErrorInt(const char* text); virtual void setLockoutInt(); virtual void setQuitInt(); + virtual void setFMInt(); virtual void writeDStarInt(const char* my1, const char* my2, const char* your, const char* type, const char* reflector); virtual void clearDStarInt();