git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
636a8f5
)
increase slider range
author
Felix Domke
<tmbinc@elitedvb.net>
Thu, 19 Oct 2006 10:55:48 +0000
(10:55 +0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Thu, 19 Oct 2006 10:55:48 +0000
(10:55 +0000)
lib/python/Components/Lcd.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/Lcd.py
b/lib/python/Components/Lcd.py
index d547a58c523037a2284ad9c41d5c44638c3e9483..b043f393a636ac5464916ffe9ce517ddd3df074d 100644
(file)
--- a/
lib/python/Components/Lcd.py
+++ b/
lib/python/Components/Lcd.py
@@
-7,12
+7,18
@@
class LCD:
pass
def setBright(self, value):
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):
def setContrast(self, value):
+ value *= 63
+ value /= 20
+ if value > 63:
+ value = 63
eDBoxLCD.getInstance().setLCDContrast(value)
eDBoxLCD.getInstance().setLCDContrast(value)
- pass
def setInverted(self, value):
if value:
def setInverted(self, value):
if value:
@@
-21,9
+27,9
@@
class LCD:
def InitLcd():
config.lcd = ConfigSubsection();
def InitLcd():
config.lcd = ConfigSubsection();
- config.lcd.bright = ConfigSlider(default=10, limits=(
1
, 10))
- config.lcd.contrast = ConfigSlider(default=
10, limits=(1, 1
0))
- 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, 2
0))
+ config.lcd.standby = ConfigSlider(default=0, limits=(
0,
10))
config.lcd.invert = ConfigYesNo(default=False)
ilcd = LCD()
config.lcd.invert = ConfigYesNo(default=False)
ilcd = LCD()