diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-10-19 10:55:48 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-10-19 10:55:48 +0000 |
| commit | d85c75fc186d91f497d5997982db94259b041280 (patch) | |
| tree | 51a4e5f6cbb878cc9b54b569decb7f9ece892ddf /lib/python/Components/Lcd.py | |
| parent | 636a8f5214f3745f81169e3567f2a3fb6e2e4a9b (diff) | |
| download | enigma2-d85c75fc186d91f497d5997982db94259b041280.tar.gz enigma2-d85c75fc186d91f497d5997982db94259b041280.zip | |
increase slider range
Diffstat (limited to 'lib/python/Components/Lcd.py')
| -rw-r--r-- | lib/python/Components/Lcd.py | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/lib/python/Components/Lcd.py b/lib/python/Components/Lcd.py index d547a58c..b043f393 100644 --- a/lib/python/Components/Lcd.py +++ b/lib/python/Components/Lcd.py @@ -7,12 +7,18 @@ class LCD: pass def setBright(self, value): - eDBoxLCD.getInstance().setLCDBrightness(value * 20) - pass + value *= 255 + value /= 10 + if value > 255: + value = 255 + eDBoxLCD.getInstance().setLCDBrightness(value) def setContrast(self, value): + value *= 63 + value /= 20 + if value > 63: + value = 63 eDBoxLCD.getInstance().setLCDContrast(value) - pass def setInverted(self, value): if value: @@ -21,9 +27,9 @@ class LCD: def InitLcd(): config.lcd = ConfigSubsection(); - config.lcd.bright = ConfigSlider(default=10, limits=(1, 10)) - config.lcd.contrast = ConfigSlider(default=10, limits=(1, 10)) - config.lcd.standby = ConfigSlider(default=0, limits=(1,10)) + config.lcd.bright = ConfigSlider(default=10, limits=(0, 10)) + config.lcd.contrast = ConfigSlider(default=5, limits=(0, 20)) + config.lcd.standby = ConfigSlider(default=0, limits=(0, 10)) config.lcd.invert = ConfigYesNo(default=False) ilcd = LCD() |
