LED Brightness Setup : setLED is moved in eDBoxLCD, fix integer to slider.
[vuplus_dvbapp] / lib / gdi / lcd.cpp
index 794e9ab..931d41c 100755 (executable)
@@ -124,6 +124,23 @@ void eDBoxLCD::setInverted(unsigned char inv)
        update();
 }
 
+int eDBoxLCD::setLED(int value, int option)
+{
+       switch(option)
+       {
+               case LED_BRIGHTNESS:
+                       ioctl(lcdfd, LED_IOCTL_BRIGHTNESS_NORMAL, (unsigned char)value);
+                       break;
+               case LED_DEEPSTANDBY:
+                       ioctl(lcdfd, LED_IOCTL_BRIGHTNESS_DEEPSTANDBY, (unsigned char)value);
+                       break;
+               case LED_BLINKINGTIME:
+                       ioctl(lcdfd, LED_IOCTL_BLINKING_TIME, (unsigned char)value);
+                       break;
+       }
+       return 0;
+}
+
 int eDBoxLCD::setLCDContrast(int contrast)
 {
 #ifndef NO_LCD