mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 14:35:31 +00:00
Add Support for OLED Rotate
This commit is contained in:
parent
66a37d7d25
commit
f3c8f73ad9
6 changed files with 22 additions and 3 deletions
8
Conf.cpp
8
Conf.cpp
|
|
@ -234,6 +234,7 @@ m_oledType(3U),
|
|||
m_oledBrightness(0U),
|
||||
m_oledInvert(false),
|
||||
m_oledScroll(false),
|
||||
m_oledRotate(false),
|
||||
m_lcdprocAddress(),
|
||||
m_lcdprocPort(0U),
|
||||
m_lcdprocLocalPort(0U),
|
||||
|
|
@ -776,6 +777,8 @@ bool CConf::read()
|
|||
m_oledInvert = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "Scroll") == 0)
|
||||
m_oledScroll = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "Rotate") == 0)
|
||||
m_oledRotate = ::atoi(value) == 1;
|
||||
} else if (section == SECTION_LCDPROC) {
|
||||
if (::strcmp(key, "Address") == 0)
|
||||
m_lcdprocAddress = value;
|
||||
|
|
@ -1667,6 +1670,11 @@ bool CConf::getOLEDScroll() const
|
|||
return m_oledScroll;
|
||||
}
|
||||
|
||||
bool CConf::getOLEDRotate() const
|
||||
{
|
||||
return m_oledRotate;
|
||||
}
|
||||
|
||||
std::string CConf::getLCDprocAddress() const
|
||||
{
|
||||
return m_lcdprocAddress;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue