class Sony::Projector::PjTalk

Included Modules

Defined in:

sony/projector/pj_talk.cr

Constant Summary

ERROR_CATEGORY = {1_u8 => :item_error, 2_u8 => :community_error, 16_u8 => :request_error, 32_u8 => :network_error, 240_u8 => :comms_error, 241_u8 => :ram_error}
ERRORS = {item_error: {1_u8 => "Invalid Item", 2_u8 => "Invalid Item Request", 3_u8 => "Invalid Length", 4_u8 => "Invalid Data", 17_u8 => "Short Data", 128_u8 => "Not Applicable Item"}, community_error: {1_u8 => "Different Community"}, request_error: {1_u8 => "Invalid Version", 2_u8 => "Invalid Category", 3_u8 => "Invalid Request", 17_u8 => "Short Header", 18_u8 => "Short Community", 19_u8 => "Short Command"}, network_error: {1_u8 => "Timeout"}, comms_error: {1_u8 => "Timeout", 16_u8 => "Check Sum Error", 32_u8 => "Framing Error", 48_u8 => "Parity Error", 64_u8 => "Over Run Error", 80_u8 => "Other Comm Error", 240_u8 => "Unknown Response"}, ram_error: {16_u8 => "Read Error", 32_u8 => "Write Error"}, unknown: {} of UInt8 => String}
METHODS = [:contrast, :brightness, :color, :hue, :sharpness]
PJTALK_HEADER = Bytes[2, 10]

Class Method Summary

Instance Method Summary

Class Method Detail

def self.driver_interface : String #

Instance Method Detail

def brightness(value : UInt8) #

[View source]
def brightness? #

[View source]
def color(value : UInt8) #

[View source]
def color? #

[View source]
def connected #

[View source]
def contrast(value : UInt8) #

[View source]
def contrast? #

[View source]
def disconnected #

[View source]
def do_poll #

[View source]
def hue(value : UInt8) #

[View source]
def hue? #

[View source]
def input? #

[View source]
def lamp_time? #

[View source]
def mute(state : Bool = true, index : Int32 | String = 0, layer : MuteLayer = MuteLayer::AudioVideo) #
Description copied from module PlaceOS::Driver::Interface::Muteable

When implementing muteable, these should be the preferred defaults


[View source]
def mute? #

[View source]
def on_load #

[View source]
def on_update #

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

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

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

[View source]
def sharpness(value : UInt8) #

[View source]
def sharpness? #

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

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


[View source]