class Sony::Projector::SerialControl

Included Modules

Defined in:

sony/projector/serial_control.cr

Constant Summary

DELIMITER = 154_u8
ERRORS = {0 => "No Error", 1 => "Lamp Error", 2 => "Fan Error", 4 => "Cover Error", 8 => "Temperature Error", 16 => "D5V Error", 32 => "Power Error", 64 => "Warning Error", 128 => "NVM Data ERROR"}
INDICATOR = 169_u8
METHODS = ["Contrast", "Brightness", "Color", "Hue", "Sharpness"]

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 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 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::SerialControl::Input)

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


[View source]