OLED Display - Hide unused slot and center active one

If one slot is disabled, show active slot information only
This commit is contained in:
KD4Z
2018-04-08 18:29:35 -04:00
parent c623ba8730
commit c1d7c0972f
2 changed files with 66 additions and 53 deletions

6
OLED.h
View File

@@ -40,7 +40,7 @@
class COLED : public CDisplay
{
public:
COLED(unsigned char displayType, unsigned char displayBrighness, bool displayInvert, bool displayScroll);
COLED(unsigned char displayType, unsigned char displayBrighness, bool displayInvert, bool displayScroll, bool slot1Enabled, bool slot2Enabled);
virtual ~COLED();
virtual bool open();
@@ -78,12 +78,12 @@ private:
unsigned char m_displayBrightness;
bool m_displayInvert;
bool m_displayScroll;
bool m_slot1Enabled;
bool m_slot2Enabled;
std::string m_ipaddress;
ArduiPi_OLED display;
void OLED_statusbar();
};
#endif