class Sharp::PnSeries

Included Modules

Defined in:

sharp/pn_series.cr

Constant Summary

AUDIO = {audio1: "ASDP 2", audio2: "ASDP 3", dvi: "ASDP 1", dvi_alt: "ASDA 1", hdmi: "ASHP 0", hdmi_3mm: "ASHP 1", hdmi_rca: "ASHP 2", vga: "ASAP 1", component: "ASCA 1"}
AUDIO_RESPONSE = AUDIO.to_h.invert
DELIMITER = "\r\n"
OPERATION_CODE = {video_input: "INPS", volume_status: "VOLM", mute_status: "MUTE", power_on_delay: "PWOD", contrast_status: "CONT", brightness_status: "VLMP", model_number: "INF1"}

Class Method Summary

Instance Method Summary

Class Method Detail

def self.driver_interface : String #

Instance Method Detail

def auto_adjust #

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

[View source]
def brightness_status(priority : Int32 = 0, **options) #

[View source]
def connected #

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

[View source]
def contrast_status(priority : Int32 = 0, **options) #

[View source]
def disconnected #

[View source]
def do_poll #

[View source]
def model_number(priority : Int32 = 0, **options) #

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

There seems to only be audio mute available


[View source]
def mute_status(priority : Int32 = 0, **options) #

[View source]
def on_load #

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

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

[View source]
def power_on_delay(priority : Int32 = 0, **options) #

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

[View source]
def reset #

Resets the brightness and contrast settings


[View source]
def switch_audio(input : String) #

[View source]
def switch_to(input : Input) #
Description copied from module PlaceOS::Driver::Interface::InputSelection(Sharp::PnSeries::Input)

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


[View source]
def video_input(priority : Int32 = 0, **options) #

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

[View source]
def volume_down #

[View source]
def volume_status(priority : Int32 = 0, **options) #

[View source]
def volume_up #

[View source]