X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/85f2616ef78700cf2639992abaf1011ecaa897bd..da28efe46384a6e23a91e8cb7db726f176bed409:/lib/gdi/lcd.h diff --git a/lib/gdi/lcd.h b/lib/gdi/lcd.h index 11749c64..99f921b5 100644 --- a/lib/gdi/lcd.h +++ b/lib/gdi/lcd.h @@ -27,6 +27,7 @@ public: int lock(); void unlock(); int islocked() { return locked; } + bool detected() { return lcdfd >= 0; } #ifndef SWIG eLCD(eSize size); virtual ~eLCD(); @@ -42,6 +43,7 @@ class eDBoxLCD: public eLCD { static eDBoxLCD *instance; unsigned char inverted; + int is_oled; #ifdef SWIG eDBoxLCD(); ~eDBoxLCD(); @@ -52,9 +54,10 @@ public: ~eDBoxLCD(); #endif static eDBoxLCD *getInstance(); - int eDBoxLCD::setLCDContrast(int contrast); - int eDBoxLCD::setLCDBrightness(int brightness); + int setLCDContrast(int contrast); + int setLCDBrightness(int brightness); void setInverted( unsigned char ); + bool isOled() const { return !!is_oled; } void update(); };