mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 15:09:23 +08:00
Add FM to the OLED display.
This commit is contained in:
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
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@@ -306,6 +306,21 @@ void COLED::setQuitInt()
|
|||||||
m_display.display();
|
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)
|
void COLED::writeDStarInt(const char* my1, const char* my2, const char* your, const char* type, const char* reflector)
|
||||||
{
|
{
|
||||||
m_mode = MODE_DSTAR;
|
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
|
* 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
|
* 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 setErrorInt(const char* text);
|
||||||
virtual void setLockoutInt();
|
virtual void setLockoutInt();
|
||||||
virtual void setQuitInt();
|
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 writeDStarInt(const char* my1, const char* my2, const char* your, const char* type, const char* reflector);
|
||||||
virtual void clearDStarInt();
|
virtual void clearDStarInt();
|
||||||
|
|||||||
Reference in New Issue
Block a user