tslumd.messages
¶
-
class
tslumd.messages.
Display
(index: int, rh_tally: tslumd.common.TallyColor = <TallyColor.OFF: 0>, txt_tally: tslumd.common.TallyColor = <TallyColor.OFF: 0>, lh_tally: tslumd.common.TallyColor = <TallyColor.OFF: 0>, brightness: int = 3, text: str = '')[source]¶ Bases:
object
A single tally “display”
-
rh_tally
: tslumd.common.TallyColor = 0¶ Right hand tally indicator
-
txt_tally
: tslumd.common.TallyColor = 0¶ Text tally indicator
-
lh_tally
: tslumd.common.TallyColor = 0¶ Left hand tally indicator
-
classmethod
from_dmsg
(flags: tslumd.messages.Flags, dmsg: bytes) → Tuple[tslumd.messages.Display, bytes][source]¶ Construct an instance from a
DMSG
portion of received message.Any remaining message data after the relevant
DMSG
is returned along with the instance.
-
to_dmsg
(flags: tslumd.messages.Flags) → bytes[source]¶ Build
dmsg
bytes to be included in a message (called fromMessage.build_message()
)
-
classmethod
from_tally
(tally: tslumd.tallyobj.Tally) → tslumd.messages.Display[source]¶
-
-
class
tslumd.messages.
Message
(version: int = 0, flags: int = <Flags.NO_FLAGS: 0>, screen: int = 0, displays: List[tslumd.messages.Display] = <factory>, scontrol: bytes = b'')[source]¶ Bases:
object
A single UMDv5 message packet
-
displays
: List[tslumd.messages.Display]¶ A list of
Display
instances
-