class Panasonic::Display::Protocol2

Included Modules

Defined in:

panasonic/display/protocol2.cr

Constant Summary

COMMANDS = {power_on: "PON", power_off: "POF", power_query: "QPW", input: "IMS", volume: "AVL", volume_query: "QAV", audio_mute: "AMT"}
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 => "HM1", Inputs::HDMI2 => "HM2", Inputs::VGA => "PC1", Inputs::DVI => "DVI"}
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 do_poll #

[View source]
def input? #

There is no input query command


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

There is no video mute command so this only mutes audio


[View source]
def mute? : Bool #

[View source]
def on_load #

[View source]
def on_update #

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

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

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

[View source]
def switch_to(input : Inputs) #
Description copied from module PlaceOS::Driver::Interface::InputSelection(Panasonic::Display::Protocol2::Inputs)

Switches all outputs to the requested input Special case switch_to 0 should mute all the outputs, if supported


[View source]
def volume(val : Int32 | Float64) #

[View source]
def volume? : Int32 | Nil #

[View source]
def volume_down #

[View source]
def volume_up #

[View source]