class Panasonic::Projector::NTControl
- Panasonic::Projector::NTControl
- PlaceOS::Driver
- Reference
- Object
Included Modules
- PlaceOS::Driver::Interface::InputSelection(Panasonic::Projector::NTControl::Inputs)
- PlaceOS::Driver::Interface::Muteable
- PlaceOS::Driver::Interface::Powerable
Defined in:
panasonic/projector/nt_control.crConstant Summary
-
COMMANDS =
{power_on: "PON", power_off: "POF", power_query: "QPW", freeze: "OFZ", input: "IIS", mute: "OSH", lamp: "Q$S", lamp_hours: "Q$L"}
-
ERRORS =
{"ERR1" => "1: Undefined control command", "ERR2" => "2: Out of parameter range", "ERR3" => "3: Busy state or no-acceptable period", "ERR4" => "4: Timeout or no-acceptable period", "ERR5" => "5: Wrong data length", "ERRA" => "A: Password mismatch", "ER401" => "401: Command cannot be executed", "ER402" => "402: Invalid parameter is sent"}
-
INPUT_LOOKUP =
INPUTS.invert
-
INPUTS =
{Inputs::HDMI => "HD1", Inputs::HDMI2 => "HD2", Inputs::VGA => "RG1", Inputs::VGA2 => "RG2", Inputs::Miracast => "MC1", Inputs::DVI => "DVI", Inputs::DisplayPort => "DP1", Inputs::HDBaseT => "DL1", Inputs::Composite => "VID"}
-
RESPONSES =
COMMANDS.to_h.invert
Class Method Summary
Instance Method Summary
- #disconnected
- #lamp_hours?(**options)
-
#mute(state : Bool = true, index : Int32 | String = 0, layer : MuteLayer = MuteLayer::AudioVideo)
Mutes audio + video
- #on_load
- #on_update
- #power(state : Bool)
- #power?(**options)
- #received(data, task)
-
#switch_to(input : Inputs)
Switches all outputs to the requested input Special case
switch_to 0
should mute all the outputs, if supported
Class Method Detail
Instance Method Detail
def mute(state : Bool = true, index : Int32 | String = 0, layer : MuteLayer = MuteLayer::AudioVideo)
#
Mutes audio + video
Description copied from module PlaceOS::Driver::Interface::InputSelection(Panasonic::Projector::NTControl::Inputs)
Switches all outputs to the requested input
Special case switch_to 0
should mute all the outputs, if supported