Add Support for OLED Rotate

This commit is contained in:
Michael Eckhoff
2018-10-30 09:30:41 -05:00
parent 66a37d7d25
commit f3c8f73ad9
6 changed files with 22 additions and 3 deletions

View File

@@ -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;