Skip to content

Commit

Permalink
[LED] More update to DreamOne/Two
Browse files Browse the repository at this point in the history
  • Loading branch information
fairbird committed Feb 8, 2024
1 parent c9291be commit 4d80776
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 47 deletions.
4 changes: 2 additions & 2 deletions lib/python/Components/FrontPanelLed.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
("0xFFFFFF", _("white")),
]
# running
config.fp.led.default_color = ConfigSelection(colors, default="0xFFFFFF")
config.fp.led.default_color = ConfigSelection(colors, default="0x00FF00")
config.fp.led.default_brightness = ConfigSlider(default=0xff, increment=25, limits=(0, 0xff))
# standby
config.fp.led.standby_color = ConfigSelection(colors, default="0xFFFFFF")
config.fp.led.standby_color = ConfigSelection(colors, default="0xFF0000")
config.fp.led.standby_brightness = ConfigSlider(default=0x08, increment=8, limits=(0, 0xff))
# shutdown
config.fp.led.shutdown_color = ConfigSelection(colors, default="0xFF5500")
Expand Down
39 changes: 0 additions & 39 deletions lib/python/Components/Renderer/FrontpanelLed2.py

This file was deleted.

2 changes: 1 addition & 1 deletion lib/python/Components/Renderer/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ installdir = $(pkglibdir)/python/Components/Renderer
install_PYTHON = \
__init__.py Label.py Progress.py Listbox.py Renderer.py Pixmap.py \
FixedLabel.py PositionGauge.py Canvas.py CiModuleControl.py Picon.py Pig.py \
FrontpanelLed.py FrontpanelLed2.py ChannelNumber.py VideoSize.py NextEpgInfo.py GaugeRender.py \
FrontpanelLed.py ChannelNumber.py VideoSize.py NextEpgInfo.py GaugeRender.py \
AnalogClockLCD.py AudioIcon.py Bhclock.py Cover.py EmptyEpg.py LcdPicon.py \
NextEvents.py PicCript.py PicEmu2.py PiconUni.py RollerCharLCD.py RollerCharLCDLong.py \
RunningText.py VolumeText.py VRunningText.py VWatches.py VtiEmuInfo.py VtiImageVersion.py
7 changes: 2 additions & 5 deletions lib/python/Screens/SessionGlobals.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,12 @@
from Components.Sources.Boolean import Boolean
from Components.Sources.RecordState import RecordState
from Components.Converter.Combine import Combine
from Components.Renderer.FrontpanelLed import FrontpanelLed
from Components.config import config
from Components.SystemInfo import BoxInfo

MODEL = BoxInfo.getItem("model")

if MODEL in ("dreamone", "dreamtwo"):
from Components.Renderer.FrontpanelLed2 import FrontpanelLed2
else:
from Components.Renderer.FrontpanelLed import FrontpanelLed
MODEL = BoxInfo.getItem("model")


class SessionGlobals(Screen):
Expand Down

0 comments on commit 4d80776

Please sign in to comment.