Add FM to the OLED display.
This commit is contained in:
parent
4a923fb27e
commit
3687eb71a8
17
OLED.cpp
17
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;
|
||||
|
|
3
OLED.h
3
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();
|
||||
|
|
Loading…
Reference in New Issue