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 (parent:
f21e64a
)
Components/Lcd.py: use 1 instead of 0 for Oled standby default value (with new driver...
author
ghost
<andreas.monzner@multimedia-labs.de>
Tue, 1 Dec 2009 09:32:01 +0000
(10:32 +0100)
committer
ghost
<andreas.monzner@multimedia-labs.de>
Tue, 1 Dec 2009 09:32:34 +0000
(10:32 +0100)
lib/python/Components/Lcd.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/Lcd.py
b/lib/python/Components/Lcd.py
index 0e501237e4af42bbb96dbc9fff5056f7d7bd4386..7d27c097ee9fd2c98a68c977a7711253f25d82be 100644
(file)
--- a/
lib/python/Components/Lcd.py
+++ b/
lib/python/Components/Lcd.py
@@
-42,9
+42,18
@@
def InitLcd():
def setLCDinverted(configElement):
ilcd.setInverted(configElement.value);
def setLCDinverted(configElement):
ilcd.setInverted(configElement.value);
+ standby_default = 0
+
ilcd = LCD()
ilcd = LCD()
- config.lcd.standby = ConfigSlider(default=0, limits=(0, 10))
+ if not ilcd.isOled():
+ config.lcd.contrast = ConfigSlider(default=5, limits=(0, 20))
+ config.lcd.contrast.addNotifier(setLCDcontrast);
+ else:
+ config.lcd.contrast = ConfigNothing()
+ standby_default = 1
+
+ config.lcd.standby = ConfigSlider(default=standby_default, limits=(0, 10))
config.lcd.standby.addNotifier(setLCDbright);
config.lcd.standby.apply = lambda : setLCDbright(config.lcd.standby)
config.lcd.standby.addNotifier(setLCDbright);
config.lcd.standby.apply = lambda : setLCDbright(config.lcd.standby)
@@
-53,12
+62,6
@@
def InitLcd():
config.lcd.bright.apply = lambda : setLCDbright(config.lcd.bright)
config.lcd.bright.callNotifiersOnSaveAndCancel = True
config.lcd.bright.apply = lambda : setLCDbright(config.lcd.bright)
config.lcd.bright.callNotifiersOnSaveAndCancel = True
- if not ilcd.isOled():
- config.lcd.contrast = ConfigSlider(default=5, limits=(0, 20))
- config.lcd.contrast.addNotifier(setLCDcontrast);
- else:
- config.lcd.contrast = ConfigNothing()
-
config.lcd.invert = ConfigYesNo(default=False)
config.lcd.invert.addNotifier(setLCDinverted);
else:
config.lcd.invert = ConfigYesNo(default=False)
config.lcd.invert.addNotifier(setLCDinverted);
else: