5 #include <lib/gdi/esize.h>
6 #include <lib/gdi/erect.h>
8 #define LCD_CONTRAST_MIN 0
9 #define LCD_CONTRAST_MAX 63
10 #define LCD_BRIGHTNESS_MIN 0
11 #define LCD_BRIGHTNESS_MAX 255
21 unsigned char *_buffer;
29 int islocked() { return locked; }
30 bool detected() { return lcdfd >= 0; }
34 __u8 *buffer() { return (__u8*)_buffer; }
35 int stride() { return _stride; }
36 eSize size() { return res; }
38 virtual void update()=0;
42 class eDBoxLCD: public eLCD
44 static eDBoxLCD *instance;
45 unsigned char inverted;
56 static eDBoxLCD *getInstance();
57 int setLCDContrast(int contrast);
58 int setLCDBrightness(int brightness);
59 void setInverted( unsigned char );
60 bool isOled() const { return !!is_oled; }