class Panasonic::Projector::NTControl

Included Modules

Defined in:

panasonic/projector/nt_control.cr

Constant 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

Class Method Detail

def self.driver_interface : String #

Instance Method Detail

def disconnected #

[View source]
def lamp_hours?(**options) #

[View source]
def mute(state : Bool = true, index : Int32 | String = 0, layer : MuteLayer = MuteLayer::AudioVideo) #

Mutes audio + video


[View source]
def on_load #

[View source]
def on_update #

[View source]
def power(state : Bool) #

[View source]
def power?(**options) #

[View source]
def received(data, task) #

[View source]
def switch_to(input : Inputs) #
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


[View source]