1 from config import config, ConfigSubsection, ConfigSlider, ConfigYesNo
3 from enigma import eDBoxLCD
9 def setBright(self, value):
14 eDBoxLCD.getInstance().setLCDBrightness(value)
16 def setContrast(self, value):
21 eDBoxLCD.getInstance().setLCDContrast(value)
23 def setInverted(self, value):
26 eDBoxLCD.getInstance().setInverted(value)
29 config.lcd = ConfigSubsection();
30 config.lcd.bright = ConfigSlider(default=10, limits=(0, 10))
31 config.lcd.contrast = ConfigSlider(default=5, limits=(0, 20))
32 config.lcd.standby = ConfigSlider(default=0, limits=(0, 10))
33 config.lcd.invert = ConfigYesNo(default=False)
37 def setLCDbright(configElement):
38 ilcd.setBright(configElement.value);
40 def setLCDcontrast(configElement):
41 ilcd.setContrast(configElement.value);
43 def setLCDinverted(configElement):
44 ilcd.setInverted(configElement.value);
46 config.lcd.bright.addNotifier(setLCDbright);
47 config.lcd.contrast.addNotifier(setLCDcontrast);
48 config.lcd.invert.addNotifier(setLCDinverted);