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
13 enum op { LED_BRIGHTNESS = 0, LED_DEEPSTANDBY, LED_BLINKINGTIME };
15 #define LED_IOCTL_BRIGHTNESS_NORMAL 0X10
16 #define LED_IOCTL_BRIGHTNESS_DEEPSTANDBY 0X11
17 #define LED_IOCTL_BLINKING_TIME 0X12
26 void setSize(int xres, int yres, int bpp);
28 unsigned char *_buffer;
36 int islocked() { return locked; }
37 bool detected() { return lcdfd >= 0; }
41 __u8 *buffer() { return (__u8*)_buffer; }
42 int stride() { return _stride; }
43 eSize size() { return res; }
44 virtual void update()=0;
48 class eDBoxLCD: public eLCD
50 static eDBoxLCD *instance;
51 unsigned char inverted;
62 static eDBoxLCD *getInstance();
63 int setLED(int value, int option);
64 int setLCDContrast(int contrast);
65 int setLCDBrightness(int brightness);
66 void setInverted( unsigned char );
67 bool isOled() const { return !!is_oled; }